diff --git a/buildman/component/buildcomponent.py b/buildman/component/buildcomponent.py index be0e17d7f..5cac57afe 100644 --- a/buildman/component/buildcomponent.py +++ b/buildman/component/buildcomponent.py @@ -217,14 +217,14 @@ class BuildComponent(BaseComponent): elif phase == BUILD_PHASE.BUILDING: self._build_status.append_log(current_status_string) - def _determine_cache_tag(self, cache_commands, base_image_name, base_image_tag, base_image_id): + def _determine_cache_tag(self, command_comments, base_image_name, base_image_tag, base_image_id): with self._build_status as status_dict: - status_dict['total_commands'] = len(cache_commands) + 1 + status_dict['total_commands'] = len(command_comments) + 1 logger.debug('Checking cache on realm %s. Base image: %s:%s (%s)', self.builder_realm, base_image_name, base_image_tag, base_image_id) - return self._current_job.determine_cached_tag(base_image_id, cache_commands) or '' + return self._current_job.determine_cached_tag(base_image_id, command_comments) or '' def _build_failure(self, error_message, exception=None): """ Handles and logs a failed build. """