update get_rspec() to accept creds, and options params
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 20 Sep 2010 19:00:53 +0000 (15:00 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 20 Sep 2010 19:00:53 +0000 (15:00 -0400)
sfa/managers/aggregate_manager_pl.py

index 6a6a03b..da5c337 100644 (file)
@@ -270,13 +270,11 @@ def get_rspec(api, creds, options):
     xrn = options.get('geni_slice_urn', None)
     hrn, type = urn_to_hrn(xrn)
 
-    """
     # look in cache first
     if api.cache and not xrn:
         rspec = api.cache.get('nodes')
         if rspec:
             return rspec 
-    """
 
     registry = api.registries[api.hrn]
     credential = api.getCredential()
@@ -291,11 +289,10 @@ def get_rspec(api, creds, options):
 
     rspec = network.toxml()
 
-    """
     # cache the result
     if api.cache and not xrn:
         api.cache.add('nodes', rspec)
-    """
+    
     return rspec