ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject ambari git commit: AMBARI-21030. Custom task script should output specific exception (dlysnichenko)
Date Tue, 16 May 2017 15:47:30 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 8cebc18b8 -> 47b845fb9


AMBARI-21030. Custom task script should output specific exception (dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/47b845fb
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/47b845fb
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/47b845fb

Branch: refs/heads/trunk
Commit: 47b845fb9acf2cdfe196731f05ec1395142a1fb5
Parents: 8cebc18
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Tue May 16 18:45:48 2017 +0300
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Tue May 16 18:46:27 2017 +0300

----------------------------------------------------------------------
 .../src/main/resources/custom_actions/scripts/ru_execute_tasks.py  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/47b845fb/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 4dec16f..c0f0d41 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
@@ -23,6 +23,7 @@ import re
 import os
 import ambari_simplejson as json # simplejson is much faster comparing to Python 2.6 json
module and has the same functions set.
 import socket
+import traceback
 
 from resource_management.libraries.script import Script
 from resource_management.libraries.functions.default import default
@@ -79,6 +80,7 @@ def resolve_ambari_config():
     else:
       raise Exception("No config found at %s" % str(config_path))
   except Exception, err:
+    traceback.print_exc()
     Logger.warning(err)
 
 


Mime
View raw message