git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b64803
)
remove caller_cred agrument
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Dec 2009 21:37:25 +0000
(21:37 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Dec 2009 21:37:25 +0000
(21:37 +0000)
sfa/methods/get_slices.py
patch
|
blob
|
history
diff --git
a/sfa/methods/get_slices.py
b/sfa/methods/get_slices.py
index
df11a04
..
03b9d0f
100644
(file)
--- a/
sfa/methods/get_slices.py
+++ b/
sfa/methods/get_slices.py
@@
-28,7
+28,7
@@
class get_slices(Method):
returns = [Parameter(str, "Human readable slice name (hrn)")]
returns = [Parameter(str, "Human readable slice name (hrn)")]
- def call(self, cred, request_hash=None
, caller_cred=None
):
+ def call(self, cred, request_hash=None):
self.api.auth.authenticateCred(cred, [cred], request_hash)
self.api.auth.check(cred, 'listslices')
if caller_cred==None:
self.api.auth.authenticateCred(cred, [cred], request_hash)
self.api.auth.check(cred, 'listslices')
if caller_cred==None:
@@
-38,6
+38,7
@@
class get_slices(Method):
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, Credential(string=caller_cred).get_gid_caller().get_hrn(), None, self.name))
slices = []
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, Credential(string=caller_cred).get_gid_caller().get_hrn(), None, self.name))
slices = []
+ return [1]
# send the call to the right manager
manager_base = 'sfa.managers'
if self.api.interface in ['component']:
# send the call to the right manager
manager_base = 'sfa.managers'
if self.api.interface in ['component']: