From 7a7ac2ee8344eb29f973af854bf2f2cb5d9776cb Mon Sep 17 00:00:00 2001 From: Arun prasath Date: Tue, 30 Aug 2016 20:46:43 +0530 Subject: [PATCH] Fixes bug #4546 - Made password optional (#4574) --- lib/ansible/modules/cloud/openstack/os_user.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/ansible/modules/cloud/openstack/os_user.py b/lib/ansible/modules/cloud/openstack/os_user.py index 1e148e3d946..19c984992ac 100644 --- a/lib/ansible/modules/cloud/openstack/os_user.py +++ b/lib/ansible/modules/cloud/openstack/os_user.py @@ -41,7 +41,6 @@ options: password: description: - Password for the user - - Required when I(state) is present required: false default: None email: @@ -149,9 +148,6 @@ def main(): module_kwargs = openstack_module_kwargs() module = AnsibleModule( argument_spec, - required_if=[ - ('state', 'present', ['password']) - ], **module_kwargs) if not HAS_SHADE: