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
group db-related stuff in sfa/storage
[sfa.git]
/
sfa
/
methods
/
GetVersion.py
diff --git
a/sfa/methods/GetVersion.py
b/sfa/methods/GetVersion.py
index
2a8f6b2
..
9dc586f
100644
(file)
--- a/
sfa/methods/GetVersion.py
+++ b/
sfa/methods/GetVersion.py
@@
-1,6
+1,6
@@
-from sfa.util.faults import *
from sfa.util.method import Method
from sfa.util.method import Method
-from sfa.util.parameter import Parameter
+
+from sfa.storage.parameter import Parameter
class GetVersion(Method):
class GetVersion(Method):
@@
-9,10
+9,9
@@
class GetVersion(Method):
@return version
"""
interfaces = ['registry','aggregate', 'slicemgr', 'component']
@return version
"""
interfaces = ['registry','aggregate', 'slicemgr', 'component']
- accepts = []
+ accepts = [
Parameter(dict, "Options")
]
returns = Parameter(dict, "Version information")
returns = Parameter(dict, "Version information")
- def call(self):
+ def call(self
, options={}
):
self.api.logger.info("interface: %s\tmethod-name: %s" % (self.api.interface, self.name))
self.api.logger.info("interface: %s\tmethod-name: %s" % (self.api.interface, self.name))
- manager = self.api.get_interface_manager()
- return manager.GetVersion(self.api)
+ return self.api.manager.GetVersion(self.api, options)