Merge pull request #190 from yuriks/patch-1
crypttab: Fix parameter checking with state=absent
This commit is contained in:
commit
d4d5d7cf73
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue