Fix typos

This commit is contained in:
Joseph Schorr 2015-02-09 14:53:18 -05:00
parent 384d0eba6f
commit 9b0e43514b
2 changed files with 4 additions and 2 deletions

View file

@ -217,6 +217,7 @@ class BuildComponent(BaseComponent):
elif phase == BUILD_PHASE.BUILDING:
self._build_status.append_log(current_status_string)
@trollius.coroutine
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(command_comments) + 1
@ -224,7 +225,8 @@ class BuildComponent(BaseComponent):
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, command_comments) or ''
tag_found = self._current_job.determine_cached_tag(base_image_id, command_comments)
raise trollius.Return(tag_found or '')
def _build_failure(self, error_message, exception=None):
""" Handles and logs a failed build. """