mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #16517 from steverweber/cloud_state
Cloud state absent was missing NOT on has_instance
This commit is contained in:
commit
12f96f64e0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user