Commit 6321c6f2 authored by Spiros Koulouzis's avatar Spiros Koulouzis

fixed typo

parent 453fd697
...@@ -184,16 +184,12 @@ class Planner: ...@@ -184,16 +184,12 @@ class Planner:
for tosca_node_type in self.all_node_types: for tosca_node_type in self.all_node_types:
if tosca_node_type.startswith('tosca.nodes') and 'capabilities' in self.all_node_types[tosca_node_type]: if tosca_node_type.startswith('tosca.nodes') and 'capabilities' in self.all_node_types[tosca_node_type]:
logging.debug(' Node: ' + str(tosca_node_type)) logging.debug(' Node: ' + str(tosca_node_type))
print(' Node: ' + str(tosca_node_type))
for caps in self.all_node_types[tosca_node_type]['capabilities']: for caps in self.all_node_types[tosca_node_type]['capabilities']:
logging.debug(' ' + str( logging.debug(' ' + str(
self.all_node_types[tosca_node_type]['capabilities'][caps]['type']) + ' == ' + cap) self.all_node_types[tosca_node_type]['capabilities'][caps]['type']) + ' == ' + cap)
print(' ' + str(
self.all_node_types[tosca_node_type]['capabilities'][caps]['type']) + ' == ' + cap)
if self.all_node_types[tosca_node_type]['capabilities'][caps]['type'] == cap: if self.all_node_types[tosca_node_type]['capabilities'][caps]['type'] == cap:
candidate_nodes[tosca_node_type] = self.all_node_types[tosca_node_type] candidate_nodes[tosca_node_type] = self.all_node_types[tosca_node_type]
logging.debug(' candidate_node: ' + str(tosca_node_type)) logging.debug(' candidate_node: ' + str(tosca_node_type))
print(' candidate_node: ' + str(tosca_node_type))
candidate_child_nodes = {} candidate_child_nodes = {}
for node in candidate_nodes: for node in candidate_nodes:
...@@ -254,8 +250,6 @@ class Planner: ...@@ -254,8 +250,6 @@ class Planner:
child_nodes = {} child_nodes = {}
for tosca_node_type in self.all_node_types: for tosca_node_type in self.all_node_types:
if tosca_node_type.startswith('tosca.nodes') and 'derived_from' in self.all_node_types[tosca_node_type]: if tosca_node_type.startswith('tosca.nodes') and 'derived_from' in self.all_node_types[tosca_node_type]:
print(parent_node_type_name)
print(tosca_node_type)
if parent_node_type_name == self.all_node_types[tosca_node_type]['derived_from']: if parent_node_type_name == self.all_node_types[tosca_node_type]['derived_from']:
child_nodes[tosca_node_type] = self.all_node_types[tosca_node_type] child_nodes[tosca_node_type] = self.all_node_types[tosca_node_type]
return child_nodes return child_nodes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment