(no commit message)
authorSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 17 Jul 2009 03:52:36 +0000 (03:52 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 17 Jul 2009 03:52:36 +0000 (03:52 +0000)
sfa/rspecs/aggregates/rspec_manager_max.py

index 0a6d966..6bf1a8c 100644 (file)
@@ -189,10 +189,14 @@ def get_rspec(hrn):
     return (allocations_to_rspec_dict(current_allocations))
 
 
-def create_slice(api, hrn, rspec):
+def create_slice(api, hrn, rspec_xml):
     # Check if everything in rspec is either allocated by hrn
     # or not allocated at all.
 
+    r = Rspec()
+    r.parseString(rspec_xml)
+    rspec = r.toDict()
+
     lock_state_file()
 
     allocations = read_alloc_dict()