Skip to content

Commit

Permalink
only use the ImageAcquireError field
Browse files Browse the repository at this point in the history
  • Loading branch information
Erez Freiberger committed Jan 23, 2018
1 parent 3087870 commit dad7ea9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def analyze
_log.error("analyzing image-inspector metadata for #{options[:docker_image_id]} failed with error: #{e}")
end

if inspector_metadata.ImageAcquireSuccess == false
if inspector_metadata.ImageAcquireError.present?
msg = "image acquiring error: #{inspector_metadata.ImageAcquireError}"
_log.error(msg)
return queue_signal(:abort_job, msg, 'error')
Expand Down

0 comments on commit dad7ea9

Please sign in to comment.