X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fopenstack%2Fheat_parser.py;h=672a76b6946ab7b1f01ff5eaff84c0e8f7e4b786;hb=2d3a45753d47a692e971da299c2139336bb27518;hp=a926c10f6c7e849751335d500b3e813b5ed70bbd;hpb=78faf0ec78bffc066105e090646b13faa6a26305;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/openstack/heat_parser.py b/src/emuvim/api/openstack/heat_parser.py old mode 100644 new mode 100755 index a926c10..672a76b --- 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