You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2018/07/08 21:38:21 UTC
[ambari] branch trunk updated: [AMBARI-24264] Suppress log messages
from the credential_store_helper
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 36feaeb [AMBARI-24264] Suppress log messages from the credential_store_helper
36feaeb is described below
commit 36feaebd46e444aaf78e40b93525b48dd11f0fd1
Author: Robert Levas <rl...@hortonworks.com>
AuthorDate: Sun Jul 8 12:08:27 2018 -0400
[AMBARI-24264] Suppress log messages from the credential_store_helper
---
.../src/main/python/ambari_commons/credential_store_helper.py | 4 ++--
1 file 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 a398464..9d411b8 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)
+ cmd_result, std_out_msg = checked_call(cmd, quite=True)
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)
+ cmd_result, std_out_msg = checked_call(cmd, quite=True)
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.