git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding support for geni_speaking_for option
[sfa.git]
/
sfa
/
methods
/
Start.py
diff --git
a/sfa/methods/Start.py
b/sfa/methods/Start.py
index
1412222
..
b4d88ee
100644
(file)
--- a/
sfa/methods/Start.py
+++ b/
sfa/methods/Start.py
@@
-26,7
+26,8
@@
class Start(Method):
def call(self, xrn, creds):
hrn, type = urn_to_hrn(xrn)
def call(self, xrn, creds):
hrn, type = urn_to_hrn(xrn)
- valid_creds = self.api.auth.checkCredentials(creds, 'startslice', hrn)
+ (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
+ valid_creds = self.api.auth.checkCredentials(creds, 'startslice', hrn, speaking_for)
#log the call
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
#log the call
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()