mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
bad ref to error fix
This commit is contained in:
parent
d1a1a594e9
commit
12abbfdcf7
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue