Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 ae75c871e -> 50d391da0


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/50d391da
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/50d391da
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/50d391da

Branch: refs/heads/branch-2.5
Commit: 50d391da0b2ae871136fff16f4c91245123d0bcd
Parents: ae75c87
Author: Tim Thorpe <[email protected]>
Authored: Thu Jan 12 06:11:58 2017 -0800
Committer: Tim Thorpe <[email protected]>
Committed: Thu Jan 12 06:11:58 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/50d391da/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 667c127..4ff3191 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/50d391da/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):

Reply via email to