From 7ab1dbea63ec8dd2e19e1ef9e303a829a209a34f Mon Sep 17 00:00:00 2001 From: peusterm Date: Wed, 14 Jun 2017 14:56:37 +0200 Subject: [PATCH] More verbose HEAT parser outputs --- src/emuvim/api/openstack/heat_parser.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/emuvim/api/openstack/heat_parser.py b/src/emuvim/api/openstack/heat_parser.py index a926c10..672a76b 100755 --- a/src/emuvim/api/openstack/heat_parser.py +++ b/src/emuvim/api/openstack/heat_parser.py @@ -64,7 +64,10 @@ class HeatParser: if len(self.bufferResource) > 0: print(str(len(self.bufferResource)) + - ' classes could not be created, because the dependencies could not be found.') + ' classes of the HOT could not be created, because the dependencies could not be found.') + print("the problem classes are:") + for br in self.bufferResource: + print("class: %s" % str(br)) return False return True @@ -125,7 +128,7 @@ class HeatParser: else: port = stack.ports[port_name] - if resource['properties']['network']['get_resource'] in stack.nets: + if str(resource['properties']['network']['get_resource']) in stack.nets: net = stack.nets[resource['properties']['network']['get_resource']] if net.subnet_id is not None: port.net_name = net.name -- 2.25.1