fix AttributeError
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 3 Dec 2012 14:50:16 +0000 (09:50 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 3 Dec 2012 14:50:16 +0000 (09:50 -0500)
sfa/planetlab/plaggregate.py

index cf3e10b..324c07c 100644 (file)
@@ -376,7 +376,7 @@ class PlAggregate:
                 geni_sliver = self.rspec_node_to_geni_sliver(rspec_node)
                 sliver_allocation_record = sliver_allocation_dict.get(sliver['sliver_id'])
                 if sliver_allocation_record:
-                    sliver_allocation = sliver_allocation.allocation_state
+                    sliver_allocation = sliver_allocation_record.allocation_state
                 else:
                     sliver_allocation = 'geni_unallocated'
                 geni_sliver['geni_allocation_status'] = sliver_allocation