summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Levas <rlevas@hortonworks.com>2018-07-09 08:14:04 -0400
committerRobert Levas <rlevas@users.noreply.github.com>2018-07-09 08:21:16 -0400
commit76228985f73d3f73f7edb807ff7c1112cde323f5 (patch)
treefd6aed89de58f89d9550ce6a884a206819ee6c6c
parent6e6646872f057b729828fc60ab4330af6e49f4bf (diff)
Revert "[AMBARI-24264] Suppress log messages from the credential_store_helper"
This reverts commit 9e2eb9c99d7e84dc175f4a30e212686caf4e1213.
-rw-r--r--ambari-common/src/main/python/ambari_commons/credential_store_helper.py4
1 files changed, 2 insertions, 2 deletions
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 9d411b886d..a398464008 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
@@ -50,7 +50,7 @@ def get_password_from_credential_store(alias, provider_path, cs_lib_path, java_h
# Execute a get command on the CredentialUtil CLI to get the password for the specified alias
java_bin = '{java_home}/bin/java'.format(java_home=java_home)
cmd = (java_bin, '-cp', cs_lib_path, credential_util_cmd, 'get', alias, '-provider', provider_path)
- cmd_result, std_out_msg = checked_call(cmd, quite=True)
+ cmd_result, std_out_msg = checked_call(cmd)
std_out_lines = std_out_msg.split('\n')
return(std_out_lines[-1]) # Get the last line of the output, to skip warnings if any.
@@ -61,7 +61,7 @@ def list_aliases_from_credential_store(provider_path, cs_lib_path, java_home, jd
# Execute a get command on the CredentialUtil CLI to list all the aliases
java_bin = '{java_home}/bin/java'.format(java_home=java_home)
cmd = (java_bin, '-cp', cs_lib_path, credential_util_cmd, 'list', '-provider', provider_path)
- cmd_result, std_out_msg = checked_call(cmd, quite=True)
+ cmd_result, std_out_msg = checked_call(cmd)
std_out_lines = std_out_msg.split('\n')
return(removeloglines(std_out_lines)[1:]) # Get the last line of the output, to skip warnings if any.