]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
library/radosgw_user.py: fix user update
authorJohn Karasev <john.karasev@intel.com>
Wed, 28 Sep 2022 18:57:41 +0000 (11:57 -0700)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 10 Oct 2022 09:00:58 +0000 (11:00 +0200)
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>
library/radosgw_user.py

index b21f928f6d5c1366501bb6272c38d6c663702dcd..8e26bbb3bb0e62ed9b1558f9252fa4f591996742 100644 (file)
@@ -265,8 +265,6 @@ def modify_user(module, container_image=None):
     cluster = module.params.get('cluster')
     name = module.params.get('name')
     display_name = module.params.get('display_name')
-    if not display_name:
-        display_name = name
     email = module.params.get('email', None)
     access_key = module.params.get('access_key', None)
     secret_key = module.params.get('secret_key', None)