From: peusterm Date: Wed, 14 Jun 2017 12:56:37 +0000 (+0200) Subject: More verbose HEAT parser outputs X-Git-Tag: v3.1~19^2~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=7ab1dbea63ec8dd2e19e1ef9e303a829a209a34f;p=osm%2Fvim-emu.git More verbose HEAT parser outputs --- 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