Bugfix, wrong node attribute were used to create sliver info in get_nodes_and_links. NT
authorNicolas Turro <Nicolas.Turro@inria.fr>
Fri, 23 Mar 2012 16:51:32 +0000 (17:51 +0100)
committerNicolas Turro <Nicolas.Turro@inria.fr>
Fri, 23 Mar 2012 16:51:32 +0000 (17:51 +0100)
sfa/senslab/slabaggregate.py

index 4c63b63..7063f66 100644 (file)
@@ -238,9 +238,9 @@ class SlabAggregate:
         
             #tags = [PLTag(node_tags[tag_id]) for tag_id in node['node_tag_ids']]
             rspec_node['tags'] = []
-            if node['hrn'] in slivers:
+            if node['hostname'] in slivers:
                 # add sliver info
-                sliver = slivers[node['node_id']]
+                sliver = slivers[node['hostname']]
                 rspec_node['sliver_id'] = sliver['sliver_id']
                 rspec_node['client_id'] = node['hostname']
                 rspec_node['slivers'] = [sliver]