Skip to content

Commit 31b5f06

Browse files
authored
AMBARI-26000: Change admin_password to use str instead of unicode (#4080)
1 parent 1b20453 commit 31b5f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def create_ranger_repository(
178178
Logger.error("Connection failed to Ranger Admin !")
179179
elif is_stack_supports_ranger_kerberos and is_security_enabled:
180180
ranger_lookup_user = "rangerlookup"
181-
admin_password = unicode(admin_password)
181+
admin_password = str(admin_password)
182182
user_resp_code = self.create_ambari_admin_user(
183183
ranger_lookup_user, admin_password, format("{admin_uname}:{admin_password}")
184184
)

0 commit comments

Comments
 (0)