More verbose HEAT parser outputs
authorpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 14 Jun 2017 12:56:37 +0000 (14:56 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 14 Jun 2017 12:56:37 +0000 (14:56 +0200)
src/emuvim/api/openstack/heat_parser.py

index a926c10..672a76b 100755 (executable)
@@ -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