From 80a00cd9a5e5b243261d58d5aa23a8ba69386aa8 Mon Sep 17 00:00:00 2001 From: Kevin Vasko Date: Sat, 9 Jul 2016 00:07:26 -0500 Subject: [PATCH] Resolves issue where to allow custom repo URLS Using an centos7 image and changing the HDP and HDP-UTILS URL location resulted in an error of "os_type=os_type_map[client.get_host_info[ambari.fqdn())["os_type"]] KeyError: u'centos7'. This results in only being able to change the HDP and HDP-UTILS URL if you were using centos6 or redhat6.This change adds centos7 and redhat7 to the map to allow custom HDP and HDP-UTILS URLs. Should we add additional operating systems to the list? Closes-Bug: #1599252 Change-Id: Iaa5cd773c5daeabeda287048a2d3f8696faa1436 (cherry picked from commit d067680e68f97b47665bbd9ece2dd810c254385a) --- sahara/plugins/ambari/deploy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sahara/plugins/ambari/deploy.py b/sahara/plugins/ambari/deploy.py index cd7575ce2e..723a298229 100644 --- a/sahara/plugins/ambari/deploy.py +++ b/sahara/plugins/ambari/deploy.py @@ -43,7 +43,9 @@ repo_id_map = { os_type_map = { "centos6": "redhat6", - "redhat6": "redhat6" + "redhat6": "redhat6", + "centos7": "redhat7", + "redhat7": "redhat7" }