currently, this conversion is done in the respective methods, i.e in get_resources...
[sfa.git] / sfa / managers / slice_manager_pl.py
index af685b5..72ea567 100644 (file)
@@ -204,7 +204,7 @@ def get_rspec(api, xrn=None, origin_hrn=None):
     
     from sfa.plc.nodes import Nodes
     nodes = Nodes(api, origin_hrn=origin_hrn)
-    if hrn:
+    if xrn:
         rspec = nodes.get_rspec(xrn)
     else:
         nodes.refresh()
@@ -218,8 +218,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):
-    slice_hrn = urn_to_hrn(slice_xrn)[0]
-    user_hrn = urn_to_hrn(user_xrn)[0]
+    #slice_hrn = urn_to_hrn(slice_xrn)[0]
+    #user_hrn = urn_to_hrn(user_xrn)[0]
     base_context = {'sfa':{'user':{'hrn':user_hrn}}}
     return base_context