diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-01-08 21:44:58 -0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-01-08 21:44:58 -0200 |
commit | 1d60d33dc1287235f96fab937708292705303e95 (patch) | |
tree | 4e1641f8ab6e16130beaf3b5903e1f11cd83619e /system/crypttab.py | |
parent | a32869d492f5e2adbfda4a132d565c8219d18890 (diff) | |
download | ansible-modules-extras-1d60d33dc1287235f96fab937708292705303e95.tar.gz |
crypttab: Fix parameter checking with state=absent
Only the `name` parameter is required when removing an entry, but the module tried to ensure at least one other parameter was set.
Diffstat (limited to 'system/crypttab.py')
-rw-r--r-- | system/crypttab.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/crypttab.py b/system/crypttab.py index 70230fa5..ffb60516 100644 --- a/system/crypttab.py +++ b/system/crypttab.py @@ -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) |