mirror of https://github.com/ceph/ceph-ansible.git
library/radosgw_user.py: fix user update
Removes the case when display_name was defined prevously but
was not provided when modifying. Without this change the module
will change display_name to name even if display_name was not name
originally. See #7296
Signed-off-by: John Karasev <john.karasev@intel.com>
(cherry picked from commit 72ff93f685
)
pull/7334/head
parent
8b4f68e39c
commit
91e45256fa
|
@ -265,8 +265,6 @@ def modify_user(module, container_image=None):
|
||||||
cluster = module.params.get('cluster')
|
cluster = module.params.get('cluster')
|
||||||
name = module.params.get('name')
|
name = module.params.get('name')
|
||||||
display_name = module.params.get('display_name')
|
display_name = module.params.get('display_name')
|
||||||
if not display_name:
|
|
||||||
display_name = name
|
|
||||||
email = module.params.get('email', None)
|
email = module.params.get('email', None)
|
||||||
access_key = module.params.get('access_key', None)
|
access_key = module.params.get('access_key', None)
|
||||||
secret_key = module.params.get('secret_key', None)
|
secret_key = module.params.get('secret_key', None)
|
||||||
|
|
Loading…
Reference in New Issue