From 91e45256fad53072fcd95beb08a0414be35e54f2 Mon Sep 17 00:00:00 2001 From: John Karasev Date: Wed, 28 Sep 2022 11:57:41 -0700 Subject: [PATCH] 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 (cherry picked from commit 72ff93f685ee7a11490b1c9cce15aba564fb10d0) --- library/radosgw_user.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/radosgw_user.py b/library/radosgw_user.py index b21f928f6..8e26bbb3b 100644 --- a/library/radosgw_user.py +++ b/library/radosgw_user.py @@ -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)