Merge pull request #190 from yuriks/patch-1

crypttab: Fix parameter checking with state=absent
This commit is contained in:
Brian Coca 2015-03-31 23:58:52 -04:00
commit d4d5d7cf73

View file

@ -103,7 +103,7 @@ def main():
state = module.params['state']
path = module.params['path']
if backing_device is None and password is None and opts is None:
if state != 'absent' and backing_device is None and password is None and opts is None:
module.fail_json(msg="expected one or more of 'backing_device', 'password' or 'opts'",
**module.params)