This is an automated email from the ASF dual-hosted git repository.
rlevas 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 c8ab37d [AMBARI-23990]
credential_store_helper.get_password_from_credential_store does not return the
correct password string
c8ab37d is described below
commit c8ab37d040abc1a397d73cb41e0d5e576bacf8bd
Author: Robert Levas <[email protected]>
AuthorDate: Wed May 30 17:38:04 2018 -0400
[AMBARI-23990] credential_store_helper.get_password_from_credential_store
does not return the correct password string
---
ambari-common/src/main/python/ambari_commons/credential_store_helper.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/ambari-common/src/main/python/ambari_commons/credential_store_helper.py
b/ambari-common/src/main/python/ambari_commons/credential_store_helper.py
index cc392d0..a398464 100644
--- a/ambari-common/src/main/python/ambari_commons/credential_store_helper.py
+++ b/ambari-common/src/main/python/ambari_commons/credential_store_helper.py
@@ -52,7 +52,7 @@ def get_password_from_credential_store(alias, provider_path,
cs_lib_path, java_h
cmd = (java_bin, '-cp', cs_lib_path, credential_util_cmd, 'get', alias,
'-provider', provider_path)
cmd_result, std_out_msg = checked_call(cmd)
std_out_lines = std_out_msg.split('\n')
- return(removeloglines(std_out_lines)[0]) # Get the last line of the
output, to skip warnings if any.
+ return(std_out_lines[-1]) # Get the last line of the output, to skip
warnings if any.
def list_aliases_from_credential_store(provider_path, cs_lib_path, java_home,
jdk_location):
--
To stop receiving notification emails like this one, please contact
[email protected].