summaryrefslogtreecommitdiffstats
path: root/deploy/cloud/deploy.py
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2016-01-19 12:34:36 +0100
committerJonas Bjurel <jonas.bjurel@ericsson.com>2016-01-22 16:02:29 +0000
commit0404985fca063a2a1f68ead9aad8a220f2cf5bcc (patch)
tree41bb90d9c7ed4610a990bddfd6ddb5073612131f /deploy/cloud/deploy.py
parent40bff9504fa4b7d112904ca54ae5c41c8911effc (diff)
Fix to allow more physical nodes defined in DHA than node definitions in dea
NOT VERIFIED DO NOT MERGE Change-Id: Id5b6029d11bfcd394e6f84a7b73b8a17820561cf Signed-off-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
Diffstat (limited to 'deploy/cloud/deploy.py')
-rw-r--r--deploy/cloud/deploy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/deploy/cloud/deploy.py b/deploy/cloud/deploy.py
index 14d6a9621..679b0ad6f 100644
--- a/deploy/cloud/deploy.py
+++ b/deploy/cloud/deploy.py
@@ -42,8 +42,9 @@ class Deploy(object):
def assign_roles_to_cluster_node_ids(self):
self.node_roles_dict = {}
for blade, node in self.blade_node_dict.iteritems():
- roles = commafy(self.dea.get_node_role(blade))
- self.node_roles_dict[node] = (roles, blade)
+ if self.dea.get_node_role(blade):
+ roles = commafy(self.dea.get_node_role(blade))
+ self.node_roles_dict[node] = (roles, blade)
def configure_environment(self):
release_list = parse(exec_cmd('fuel release -l'))