X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fsfi.py;h=8971435365970fc1b1d5b26f47811b773e38ab95;hb=02a4a59a4a49183ec8c631cc03243b97f4602d50;hp=ad3d8bbfa2cb3eff837bce326e656df378bb2c57;hpb=20cca8d958c8cdde6090d8324f06e00191c9d873;p=sfa.git diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index ad3d8bbf..89714353 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -905,18 +905,19 @@ or with an slice hrn, shows currently provisioned resources rspec.filter({'component_manager_id': server_version['urn']}) rspec = RSpecConverter.to_pg_rspec(rspec.toxml(), content_type='request') else: + print >>sys.stderr, "\r\n \r\n \r\n WOOOOOO" users = sfa_users_arg(user_records, slice_record) # do not append users, keys, or slice tags. Anything # not contained in this request will be removed from the slice # CreateSliver has supported the options argument for a while now so it should - # be safe to assume this server support it + # be safe to assume this server support it api_options = {} api_options ['append'] = False api_options ['call_id'] = unique_call_id() - result = server.CreateSliver(slice_urn, creds, rspec, users, api_options) + result = server.CreateSliver(slice_urn, creds, rspec, users, *self.ois(server, api_options)) value = ReturnValue.get_value(result) if options.file is None: print value @@ -964,12 +965,11 @@ or with an slice hrn, shows currently provisioned resources if options.delegate: delegated_cred = self.delegate_cred(slice_cred, get_authority(self.authority)) creds.append(delegated_cred) - call_args.append(creds) # options and call_id when supported api_options = {} api_options['call_id']=unique_call_id() - result = server.SliverStatus(slice_urn, creds, self.ois(server,api_options)) + result = server.SliverStatus(slice_urn, creds, *self.ois(server,api_options)) value = ReturnValue.get_value(result) print value if options.file: