api.plshell.BindObjectToPeer(api.plauth, 'slice', slice.id, peer,
slice.peer_id)
- return aggregate.get_rspec(slice_xrn=slice_xrn)
+ return aggregate.get_rspec(slice_xrn=slice_xrn, version=RSpecVersion("pg"))
def RenewSliver(api, xrn, creds, expiration_time, 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: