api_options['call_id']=unique_call_id()
if options.show_credential:
show_credentials(creds)
- result = server.Renew(slice_urn, creds, input_time, *self.ois(server,api_options))
+ result = server.Renew([slice_urn], creds, input_time, *self.ois(server,api_options))
value = ReturnValue.get_value(result)
if self.options.raw:
save_raw_to_file(result, self.options.raw, self.options.rawformat, self.options.rawbanner)
"""
interfaces = ['aggregate', 'slicemgr']
accepts = [
- Parameter(str, "Slice URN"),
+ Parameter(type([str]), "Slice URN"),
Parameter(type([str]), "List of credentials"),
Parameter(str, "Expiration time in RFC 3339 format"),
Parameter(dict, "Options"),
# ids in the urn
names = []
for urn in urns:
- xrn = PlXrn(urn=urn, type='slice')
+ xrn = PlXrn(xrn=urn, type='slice')
names.append(xrn.pl_slicename())
slices = self.shell.GetSlices(names, ['slice_id'])
if not slices: