Fix cache command argument
This commit is contained in:
parent
6cb1212da6
commit
384d0eba6f
1 changed files with 3 additions and 3 deletions
|
@ -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. """
|
||||
|
|
Reference in a new issue