diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2016-04-20 14:37:25 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2016-04-20 14:39:31 -0700 |
commit | 2c073442b02ddbf9f094378cd5147c595fe4b46f (patch) | |
tree | 2d12b14cb4fc8a048f0a56e79e889946b4232c19 | |
parent | 1220e47f0707cfc5ed4c3cb3e0477e4f7ae74f31 (diff) | |
download | ansible-modules-extras-stable-1.9.tar.gz |
Remove 2.0-ism and fix type specificatoin in arg spec.stable-1.9
* required_if isn't available in 1.9 so we can't use it in the backport.
* Need to specify argument types as boolean otherwise ansible doesn't
normalize the values.
Fixes #2042
-rw-r--r-- | cloud/lxc/lxc_container.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cloud/lxc/lxc_container.py b/cloud/lxc/lxc_container.py index 1e7a19eb..a5c4c65b 100644 --- a/cloud/lxc/lxc_container.py +++ b/cloud/lxc/lxc_container.py @@ -1438,7 +1438,7 @@ def main(): type='str' ), container_log=dict( - choices=BOOLEANS, + type='bool', default='false' ), container_log_level=dict( @@ -1446,7 +1446,7 @@ def main(): default='INFO' ), archive=dict( - choices=BOOLEANS, + type='bool', default='false' ), archive_path=dict( @@ -1458,9 +1458,6 @@ def main(): ) ), supports_check_mode=False, - required_if = ([ - ('archive', True, ['archive_path']) - ]), ) if module.params.get('archive') and module.params.get('archive_path') is None: |