Merge pull request #190 from yuriks/patch-1

crypttab: Fix parameter checking with state=absent
reviewable/pr18780/r1
Brian Coca 10 years ago
commit d4d5d7cf73

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

Loading…
Cancel
Save