This is an automated email from the ASF dual-hosted git repository.

echekanskiy pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.6 by this push:
     new 96cee1d  AMBARI-22984. Old mpacks broken (echekanskiy)
96cee1d is described below

commit 96cee1d8ff785c88422cf0c9a1ca0bab70910346
Author: Eugene Chekanskiy <echekans...@gmail.com>
AuthorDate: Wed Feb 14 13:25:21 2018 +0200

    AMBARI-22984. Old mpacks broken (echekanskiy)
---
 .../src/main/resources/custom_actions/scripts/install_packages.py     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py 
b/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
index f925a0b..0965698 100644
--- 
a/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
+++ 
b/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
@@ -193,8 +193,12 @@ class InstallPackages(Script):
       for directory_struct in directories:
         if "component" in directory_struct:
           component_name = directory_struct["component"]
+
       if component_name:
         stack_version = 
stack_select.get_stack_version_before_install(component_name)
+      else:
+        Logger.warning("Unable to fix {0} since stack using outdated 
stack_packages.json".format(package_name))
+        return
 
       if 0 == len(restricted_packages) or package_name in restricted_packages:
         if stack_version:

-- 
To stop receiving notification emails like this one, please contact
echekans...@apache.org.

Reply via email to