mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
allow to delete grains which value is False
This commit is contained in:
parent
679dc089c0
commit
f46722aaeb
@ -220,8 +220,7 @@ def absent(name, destructive=False):
|
||||
'changes': {},
|
||||
'result': True,
|
||||
'comment': ''}
|
||||
grain = __grains__.get(name)
|
||||
if grain:
|
||||
if name in __grains__:
|
||||
if __opts__['test']:
|
||||
ret['result'] = None
|
||||
if destructive is True:
|
||||
|
Loading…
Reference in New Issue
Block a user