From: Andy Bavier Date: Tue, 8 Dec 2009 20:18:17 +0000 (+0000) Subject: Add slice HRN to sfatables request context for VINI aggregate manager X-Git-Tag: sfa-0.9-7~181 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=16d8579938e0f71d1c3e4b5e611829812bad686b;p=sfa.git Add slice HRN to sfatables request context for VINI aggregate manager --- diff --git a/sfa/managers/aggregate_manager_vini.py b/sfa/managers/aggregate_manager_vini.py index 4fb8882b..cba69574 100644 --- a/sfa/managers/aggregate_manager_vini.py +++ b/sfa/managers/aggregate_manager_vini.py @@ -192,7 +192,8 @@ to refer to "contexts", which is the information that sfatables is requesting. B return the basic information needed in a dict. """ def fetch_context(slice_hrn, user_hrn, contexts): - base_context = {'sfa':{'user':{'hrn':user_hrn}}} + base_context = {'sfa':{'user':{'hrn':user_hrn}, + 'slice':{'hrn':slice_hrn}}} return base_context def main(): diff --git a/sfa/rspecs/aggregates/rspec_manager_vini.py b/sfa/rspecs/aggregates/rspec_manager_vini.py index 4fb8882b..cba69574 100644 --- a/sfa/rspecs/aggregates/rspec_manager_vini.py +++ b/sfa/rspecs/aggregates/rspec_manager_vini.py @@ -192,7 +192,8 @@ to refer to "contexts", which is the information that sfatables is requesting. B return the basic information needed in a dict. """ def fetch_context(slice_hrn, user_hrn, contexts): - base_context = {'sfa':{'user':{'hrn':user_hrn}}} + base_context = {'sfa':{'user':{'hrn':user_hrn}, + 'slice':{'hrn':slice_hrn}}} return base_context def main():