From 8d0d538114ada059a6bbcb7f65c507492e4ac21d Mon Sep 17 00:00:00 2001
From: Tony Mack <tmack@paris.CS.Princeton.EDU>
Date: Mon, 3 Dec 2012 09:50:16 -0500
Subject: [PATCH] fix AttributeError

---
 sfa/planetlab/plaggregate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sfa/planetlab/plaggregate.py b/sfa/planetlab/plaggregate.py
index cf3e10bf..324c07c6 100644
--- a/sfa/planetlab/plaggregate.py
+++ b/sfa/planetlab/plaggregate.py
@@ -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
-- 
2.47.0