Fixes bug #4546 - Made password optional (#4574)

This commit is contained in:
Arun prasath 2016-08-30 20:46:43 +05:30 committed by David Shrewsbury
parent 8f963a7028
commit 0d98760b49

View file

@ -41,7 +41,6 @@ options:
password: password:
description: description:
- Password for the user - Password for the user
- Required when I(state) is present
required: false required: false
default: None default: None
email: email:
@ -149,9 +148,6 @@ def main():
module_kwargs = openstack_module_kwargs() module_kwargs = openstack_module_kwargs()
module = AnsibleModule( module = AnsibleModule(
argument_spec, argument_spec,
required_if=[
('state', 'present', ['password'])
],
**module_kwargs) **module_kwargs)
if not HAS_SHADE: if not HAS_SHADE: