Add slice hrn to context
[sfa.git] / sfa / managers / aggregate_manager_pl.py
index c006ef1..c05f1c8 100644 (file)
@@ -197,7 +197,7 @@ the basic information needed in a dict.
 def fetch_context(slice_xrn, user_xrn, contexts):
     slice_hrn, type = urn_to_hrn(slice_xrn)
     user_hrn, type = urn_to_hrn(user_xrn)
-    base_context = {'sfa':{'user':{'hrn':user_hrn}}}
+    base_context = {'sfa':{'user':{'hrn':user_hrn}, 'slice':{'hrn':slice_hrn}}}
     return base_context
 
 def main():