You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2015/11/17 20:02:52 UTC
ambari git commit: AMBARI-13925. Response: Status Code:500 Internal
Server Error for recommendation POST request (after upgrade from 1.7.0 to
2.1.3.0)[Add service].(vbrodetskyi)
Repository: ambari
Updated Branches:
refs/heads/branch-2.1 aafedb537 -> aa75ee15e
AMBARI-13925. Response: Status Code:500 Internal Server Error for recommendation POST request (after upgrade from 1.7.0 to 2.1.3.0)[Add service].(vbrodetskyi)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/aa75ee15
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/aa75ee15
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/aa75ee15
Branch: refs/heads/branch-2.1
Commit: aa75ee15eb9f1bcc7cc4b847b0957b26ea449858
Parents: aafedb5
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Tue Nov 17 18:04:09 2015 +0200
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Tue Nov 17 18:04:09 2015 +0200
----------------------------------------------------------------------
.../src/main/resources/stacks/HDP/2.2/services/stack_advisor.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/aa75ee15/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
index 007abb8..7201de8 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
@@ -839,7 +839,7 @@ class HDP22StackAdvisor(HDP21StackAdvisor):
authPattern = "<provider>\s*<role>\s*authorization\s*</role>[\s\S]*?</provider>"
authXml = re.search(authPattern, topologyContent)
- if authXml.group(0):
+ if authXml and authXml.group(0):
authNamePattern = "<name>\s*(.*?)\s*</name>"
authName = re.search(authNamePattern, authXml.group(0))
newAuthName=''