This is an automated email from the ASF dual-hosted git repository. mehul pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ranger.git
commit f6b69ca5846de9a7dfced70ae8e403388ecb89fe Author: Dineshkumar Yadav <[email protected]> AuthorDate: Wed Apr 14 16:15:25 2021 +0530 RANGER-3206: Enhance db_setup.py to allow reading env variables set in ranger-admin-env scripts Part-II added Pyhton3 support Signed-off-by: Mehul Parikh <[email protected]> --- security-admin/scripts/db_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security-admin/scripts/db_setup.py b/security-admin/scripts/db_setup.py index 488b708..4dcf6c9 100644 --- a/security-admin/scripts/db_setup.py +++ b/security-admin/scripts/db_setup.py @@ -144,7 +144,7 @@ def dbversionBasedOnUserName(userName): def set_env_val(command): proc = subprocess.Popen(command, stdout = subprocess.PIPE) for line in proc.stdout: - (key, _, value) = line.partition("=") + (key, _, value) = line.decode('utf8').partition('=') os.environ[key] = value.rstrip() proc.communicate()
