one more fix to renewsliver sfa-1.0-4
authorJosh Karlin <jkarlin@bbn.com>
Mon, 11 Oct 2010 19:33:53 +0000 (15:33 -0400)
committerJosh Karlin <jkarlin@bbn.com>
Mon, 11 Oct 2010 19:33:53 +0000 (15:33 -0400)
sfa/managers/aggregate_manager_pl.py

index 8d10c53..0b027e6 100644 (file)
@@ -191,8 +191,8 @@ def renew_slice(api, xrn, creds, expiration_time):
         raise RecordNotFound(hrn)
     slice = slices[0]
     requested_time = parse(expiration_time)
-    slice['expires'] = int(time.mktime(requested_time.timetuple()))
-    api.plshell.UpdateSlice(api.plauth, slice['slice_id'], slice)
+    record = {'expires': int(time.mktime(requested_time.timetuple()))}
+    api.plshell.UpdateSlice(api.plauth, slice['slice_id'], record)
     return 1         
 
 def start_slice(api, xrn, creds):