bad ref to error fix

This commit is contained in:
Ross Crawford-d'Heureuse 2018-05-05 00:06:30 +02:00 committed by Erik Johnson
parent d1a1a594e9
commit 12abbfdcf7
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -349,9 +349,10 @@ def present(name,
# Only add to the changes dict if layers were pulled
ret['changes'] = image_update
error = False
try:
__salt__['docker.inspect_image'](full_image)
error = False
except CommandExecutionError as exc:
msg = exc.__str__()
if '404' not in msg: