do not cache slice rspec
[sfa.git] / 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