This is an automated email from the ASF dual-hosted git repository.

jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 31b5f06bb4 AMBARI-26000: Change admin_password to use str instead of 
unicode (#4080)
31b5f06bb4 is described below

commit 31b5f06bb48d23dce90d1a3bd6284e3762074dd2
Author: Halim Kim <[email protected]>
AuthorDate: Mon Oct 27 10:16:11 2025 +0900

    AMBARI-26000: Change admin_password to use str instead of unicode (#4080)
---
 .../resource_management/libraries/functions/ranger_functions_v2.py      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions_v2.py
 
b/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions_v2.py
index ebe071bc36..9f12807c35 100644
--- 
a/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions_v2.py
+++ 
b/ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions_v2.py
@@ -178,7 +178,7 @@ class RangeradminV2:
         Logger.error("Connection failed to Ranger Admin !")
     elif is_stack_supports_ranger_kerberos and is_security_enabled:
       ranger_lookup_user = "rangerlookup"
-      admin_password = unicode(admin_password)
+      admin_password = str(admin_password)
       user_resp_code = self.create_ambari_admin_user(
         ranger_lookup_user, admin_password, 
format("{admin_uname}:{admin_password}")
       )


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to