do not cache slice rspec
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 2 May 2011 18:26:04 +0000 (14:26 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 2 May 2011 18:26:04 +0000 (14:26 -0400)
sfa/managers/aggregate_manager_pl.py

index 9f407ee..df6f1ce 100644 (file)
@@ -322,8 +322,9 @@ def ListResources(api, creds, options,call_id):
     else:
         # generate rspec in both pg and sfa formats
         rspec = aggregate.get_rspec(version=rspec_version)
+
     # cache the result
-    if caching and api.cache:
+    if caching and api.cache and not xrn:
         api.cache.add(version_string, rspec)
 
     return rspec