Merge pull request #16517 from steverweber/cloud_state

Cloud state absent was missing NOT on has_instance
This commit is contained in:
Joseph Hall 2014-10-09 14:44:12 -06:00
commit 12f96f64e0

View File

@ -171,7 +171,7 @@ def absent(name, onlyif=None, unless=None):
if retcode(unless) == 0:
return _valid(name, comment='unless execution succeeded')
if __salt__['cloud.has_instance'](name=name, provider=None):
if not __salt__['cloud.has_instance'](name=name, provider=None):
ret['result'] = True
ret['comment'] = 'Already absent instance {0}'.format(name)
return ret