ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-16378. stackadvisor uses getHostsForSlaveComponent with wrong parameter name (Lav Jain via smohanty)
Date Tue, 10 May 2016 17:58:34 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 9933600ca -> 07dbee41a


AMBARI-16378. stackadvisor uses getHostsForSlaveComponent with wrong parameter name (Lav Jain
via smohanty)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/07dbee41
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/07dbee41
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/07dbee41

Branch: refs/heads/trunk
Commit: 07dbee41a2be7cc65daa7efd6e89a2ec31df7c55
Parents: 9933600
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Tue May 10 10:58:16 2016 -0700
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Tue May 10 10:58:23 2016 -0700

----------------------------------------------------------------------
 ambari-server/src/main/resources/stacks/stack_advisor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/07dbee41/ambari-server/src/main/resources/stacks/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/stack_advisor.py b/ambari-server/src/main/resources/stacks/stack_advisor.py
index 00b9d79..63885d2 100644
--- a/ambari-server/src/main/resources/stacks/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/stack_advisor.py
@@ -462,7 +462,7 @@ class DefaultStackAdvisor(StackAdvisor):
 
     if self.isSlaveComponent(component):
       cardinality = str(component["StackServiceComponents"]["cardinality"])
-      if self.isComponentUsingCardinalityForLayout(component) and cardinality:
+      if self.isComponentUsingCardinalityForLayout(componentName) and cardinality:
         # cardinality types: 1+, 1-2, 1
         if "+" in cardinality:
           hostsMin = int(cardinality[:-1])


Mime
View raw message