Commit ad239a9d authored by Spiros Koulouzis's avatar Spiros Koulouzis

added parser to dump yaml

parent f1e1e884
...@@ -50,7 +50,7 @@ class TOSCAParser: ...@@ -50,7 +50,7 @@ class TOSCAParser:
node_template_dict = self.get_node_template_dict(node_template) node_template_dict = self.get_node_template_dict(node_template)
topology_dict[TOPOLOGY_TEMPLATE][NODE_TEMPLATES][node_template.name] = node_template_dict topology_dict[TOPOLOGY_TEMPLATE][NODE_TEMPLATES][node_template.name] = node_template_dict
# If we don't add this then dump uses references for the same dictionary entries i.e. '&id001'
yaml.Dumper.ignore_aliases = lambda *args : True yaml.Dumper.ignore_aliases = lambda *args : True
print(yaml.dump(topology_dict,default_flow_style=False)) print(yaml.dump(topology_dict,default_flow_style=False))
......
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