This is an automated email from the ASF dual-hosted git repository. echekanskiy pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new dc69741 AMBARI-22984. Old mpacks broken (echekanskiy) dc69741 is described below commit dc697410dd7e48e4e3705b81e8342a4b0f812769 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 cd172af..dabfdb3 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 @@ -191,8 +191,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.