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:
e889154
)
DeleteSliver returns a boolean instead of an int
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 31 Aug 2012 00:26:01 +0000
(20:26 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 31 Aug 2012 00:26:01 +0000
(20:26 -0400)
sfa/methods/DeleteSliver.py
patch
|
blob
|
history
diff --git
a/sfa/methods/DeleteSliver.py
b/sfa/methods/DeleteSliver.py
index
697b6d3
..
c9e40a4
100644
(file)
--- a/
sfa/methods/DeleteSliver.py
+++ b/
sfa/methods/DeleteSliver.py
@@
-22,7
+22,7
@@
class DeleteSliver(Method):
Parameter(dict, "options"),
]
Parameter(dict, "options"),
]
- returns = Parameter(
int, "1
if successful")
+ returns = Parameter(
bool, "True
if successful")
def call(self, xrn, creds, options):
(hrn, type) = urn_to_hrn(xrn)
def call(self, xrn, creds, options):
(hrn, type) = urn_to_hrn(xrn)
@@
-32,6
+32,5
@@
class DeleteSliver(Method):
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
- self.api.manager.DeleteSliver(self.api, xrn, creds, options)
+
return
self.api.manager.DeleteSliver(self.api, xrn, creds, options)
- return 1