From: Tony Mack Date: Wed, 30 Dec 2009 23:42:53 +0000 (+0000) Subject: set the right gid_object_caller on the credential X-Git-Tag: sfa-0.9-7~67 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0a6bc5757e25a60b9480d857a18ee9e9c08887b0;p=sfa.git set the right gid_object_caller on the credential --- diff --git a/sfa/managers/slice_manager_pl.py b/sfa/managers/slice_manager_pl.py index 25395ed7..09eabf53 100644 --- a/sfa/managers/slice_manager_pl.py +++ b/sfa/managers/slice_manager_pl.py @@ -47,7 +47,7 @@ def delete_slice(api, hrn, origin_hrn=None): print >> log, "Error calling list nodes at aggregate %s" % aggregate return 1 -def create_slice(api, hrn, rspec, origin_hrn=None): +def create_slice(api, hrn, rspec, gid_origin_caller=None): spec = RSpec() tempspec = RSpec() spec.parseString(rspec) @@ -62,7 +62,7 @@ def create_slice(api, hrn, rspec, origin_hrn=None): rspecs = {} aggregates = Aggregates(api) credential = api.getCredential() - + credential.set_gid_origin_caller(gid_origin_caller) # split the netspecs into individual rspecs netspecs = spec.getDictsByTagName('NetSpec') for netspec in netspecs: