X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Faggregate_manager_pl.py;h=e44f7bf771099683193191cbd6bf065174866393;hb=4f9ad861e58336f41b0a3bd59ddd8b932b58f0c1;hp=7bb94edced85127299f924b45d6c814e2c1a87e2;hpb=9862068f065e5387be61127d40e46513e6f9529b;p=sfa.git diff --git a/sfa/managers/aggregate_manager_pl.py b/sfa/managers/aggregate_manager_pl.py index 7bb94edc..e44f7bf7 100644 --- a/sfa/managers/aggregate_manager_pl.py +++ b/sfa/managers/aggregate_manager_pl.py @@ -316,12 +316,7 @@ def ListResources(api, creds, options,call_id): aggregate = Aggregate(api) - if xrn: - # get this rspec for the specified slice - rspec = aggregate.get_rspec(slice_xrn=hrn, version=rspec_version) - else: - # generate rspec in both pg and sfa formats - rspec = aggregate.get_rspec(version=rspec_version) + rspec = aggregate.get_rspec(slice_xrn=xrn, version=rspec_version) # cache the result if caching and api.cache and not xrn: