Repository: ambari Updated Branches: refs/heads/trunk 5228e1847 -> 384a7f036
AMBARI-19470 - Error in ru_execute_tasks.py - Logger has no attribute 'warn' Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/384a7f03 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/384a7f03 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/384a7f03 Branch: refs/heads/trunk Commit: 384a7f0363a006f5050ec27646bdd7ae998d8232 Parents: 5228e18 Author: Tim Thorpe <[email protected]> Authored: Thu Jan 12 06:10:46 2017 -0800 Committer: Tim Thorpe <[email protected]> Committed: Thu Jan 12 06:10:46 2017 -0800 ---------------------------------------------------------------------- .../AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py | 2 +- .../src/main/resources/custom_actions/scripts/ru_execute_tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/384a7f03/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py index 82ed26f..a364c72 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py @@ -50,7 +50,7 @@ class AmsGrafana(Script): ) pidfile = format("{ams_grafana_pid_dir}/grafana-server.pid") if not sudo.path_exists(pidfile): - Logger.warn("Pid file doesn't exist after starting of the component.") + Logger.warning("Pid file doesn't exist after starting of the component.") else: Logger.info("Grafana Server has started with pid: {0}".format(sudo.read_file(pidfile).strip())) http://git-wip-us.apache.org/repos/asf/ambari/blob/384a7f03/ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py b/ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py index 8e526c5..4dec16f 100644 --- a/ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py +++ b/ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py @@ -79,7 +79,7 @@ def resolve_ambari_config(): else: raise Exception("No config found at %s" % str(config_path)) except Exception, err: - Logger.warn(err) + Logger.warning(err) class ExecuteUpgradeTasks(Script):
