allow to delete grains which value is False

This commit is contained in:
Bruno Binet 2015-08-13 18:22:21 +02:00
parent 679dc089c0
commit f46722aaeb

View File

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