You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2015/11/18 17:51:13 UTC

[17/50] [abbrv] 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)

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/21733026
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/21733026
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/21733026

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 21733026c76850a7211fcd7d5095c8bbd9db5979
Parents: 27cbe86
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Tue Nov 17 18:06:45 2015 +0200
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Tue Nov 17 18:06:45 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/21733026/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=''