From 5db2b6c32bb41375e758f6cead25e2d756333435 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Fri, 17 Jul 2009 03:52:36 +0000 Subject: [PATCH] --- sfa/rspecs/aggregates/rspec_manager_max.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- 2.47.0