mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
salt.states.smartos.image_vacuum should not throw and exception when not running as a highstate
This commit is contained in:
parent
349216787d
commit
495ae6907c
@ -370,6 +370,10 @@ def image_vacuum(name):
|
||||
|
||||
# retreive image_present state data for host
|
||||
for state in __salt__['state.show_lowstate']():
|
||||
# don't throw exceptions when not highstate run
|
||||
if 'state' not in state:
|
||||
continue
|
||||
|
||||
# skip if not from this state module
|
||||
if state['state'] != __virtualname__:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user