salt.states.smartos.image_vacuum should not throw and exception when not running as a highstate

This commit is contained in:
Jorge Schrauwen 2016-03-12 11:42:03 +00:00
parent 349216787d
commit 495ae6907c

View File

@ -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