From: Sapan Bhatia Date: Fri, 17 Jul 2009 03:52:36 +0000 (+0000) Subject: (no commit message) X-Git-Tag: sfa-0.9-0@14641~29 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=5db2b6c32bb41375e758f6cead25e2d756333435 --- diff --git a/sfa/rspecs/aggregates/rspec_manager_max.py b/sfa/rspecs/aggregates/rspec_manager_max.py index 0a6d966f..6bf1a8c4 100644 --- a/sfa/rspecs/aggregates/rspec_manager_max.py +++ b/sfa/rspecs/aggregates/rspec_manager_max.py @@ -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()