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
pass options to auth.check()
[sfa.git]
/
sfa
/
methods
/
DeleteSliver.py
diff --git
a/sfa/methods/DeleteSliver.py
b/sfa/methods/DeleteSliver.py
index
caa3694
..
66726aa
100644
(file)
--- a/
sfa/methods/DeleteSliver.py
+++ b/
sfa/methods/DeleteSliver.py
@@
-26,8
+26,7
@@
class DeleteSliver(Method):
def call(self, xrn, creds, options):
(hrn, type) = urn_to_hrn(xrn)
def call(self, xrn, creds, options):
(hrn, type) = urn_to_hrn(xrn)
- (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
- valid_creds = self.api.auth.checkCredentials(creds, 'deletesliver', hrn, speaking_for)
+ valid_creds = self.api.auth.checkCredentials(creds, 'deletesliver', hrn, options=options)
#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()