ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject ambari git commit: AMBARI-21995. Revise log message for component version not found (ncole)
Date Tue, 19 Sep 2017 15:42:25 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk b9652bd7b -> cc70c2b5b


AMBARI-21995. Revise log message for component version not found (ncole)


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

Branch: refs/heads/trunk
Commit: cc70c2b5bdf7f889fe2c24fcbbe11945ee2e3a33
Parents: b9652bd
Author: Nate Cole <ncole@hortonworks.com>
Authored: Tue Sep 19 11:40:33 2017 -0400
Committer: Nate Cole <ncole@hortonworks.com>
Committed: Tue Sep 19 11:40:33 2017 -0400

----------------------------------------------------------------------
 .../main/python/resource_management/libraries/script/script.py    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/cc70c2b5/ambari-common/src/main/python/resource_management/libraries/script/script.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/script/script.py
b/ambari-common/src/main/python/resource_management/libraries/script/script.py
index 0e352d1..303b640 100644
--- a/ambari-common/src/main/python/resource_management/libraries/script/script.py
+++ b/ambari-common/src/main/python/resource_management/libraries/script/script.py
@@ -229,7 +229,8 @@ class Script(object):
         if repo_version_id:
           self.put_structured_out({"repository_version_id": repo_version_id})
       else:
-        Logger.error("Component '{0}' did not advertise a version. This may indicate a problem
with the component packaging.".format(stack_select_package_name))
+        if not self.is_hook():
+          Logger.error("Component '{0}' did not advertise a version. This may indicate a
problem with the component packaging.".format(stack_select_package_name))
 
 
   def should_expose_component_version(self, command_name):


Mime
View raw message