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
major fix about slice tags
[sfa.git]
/
sfa
/
methods
/
Delete.py
diff --git
a/sfa/methods/Delete.py
b/sfa/methods/Delete.py
index
74ff838
..
593de28
100644
(file)
--- a/
sfa/methods/Delete.py
+++ b/
sfa/methods/Delete.py
@@
-17,17
+17,19
@@
class Delete(Method):
accepts = [
Parameter(type([str]), "Human readable name of slice to delete (hrn or urn)"),
accepts = [
Parameter(type([str]), "Human readable name of slice to delete (hrn or urn)"),
- Parameter(
dict
, "Credentials"),
+ Parameter(
type([dict])
, "Credentials"),
Parameter(dict, "options"),
]
returns = Parameter(int, "1 if successful")
def call(self, xrns, creds, options):
Parameter(dict, "options"),
]
returns = Parameter(int, "1 if successful")
def call(self, xrns, creds, options):
- valid_creds = self.api.auth.checkCredentials(creds, 'deletesliver', xrns)
+ valid_creds = self.api.auth.checkCredentialsSpeaksFor(creds, 'deletesliver', xrns,
+ check_sliver_callback = self.api.driver.check_sliver_credentials,
+ options=options)
#log the call
#log the call
- origin_hrn = Credential(
string
=valid_creds[0]).get_gid_caller().get_hrn()
+ origin_hrn = Credential(
cred
=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, xrns, self.name))
return self.api.manager.Delete(self.api, xrns, creds, options)
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, xrns, self.name))
return self.api.manager.Delete(self.api, xrns, creds, options)