mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
allow to delete grains which value is False
This commit is contained in:
parent
679dc089c0
commit
f46722aaeb
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue