X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FGetVersion.py;h=4da1e97d5a13114dc96d8d2c3c149e514b87bdc9;hb=713d58df0baa1f9739eec9bfa30ceb41d7149e23;hp=cb682e44ce984033d6dee6d9ced9a0056471dd08;hpb=02a4a59a4a49183ec8c631cc03243b97f4602d50;p=sfa.git diff --git a/sfa/methods/GetVersion.py b/sfa/methods/GetVersion.py index cb682e44..4da1e97d 100644 --- a/sfa/methods/GetVersion.py +++ b/sfa/methods/GetVersion.py @@ -1,4 +1,5 @@ from sfa.util.method import Method +from sfa.util.sfalogging import logger from sfa.storage.parameter import Parameter @@ -8,13 +9,16 @@ class GetVersion(Method): Returns this GENI Aggregate Manager's Version Information @return version """ - interfaces = ['registry','aggregate', 'slicemgr', 'component'] + interfaces = ['registry', 'aggregate', 'component'] accepts = [ Parameter(dict, "Options") - ] + ] returns = Parameter(dict, "Version information") # API v2 specifies options is optional, so.. - def call(self, options={}): - self.api.logger.info("interface: %s\tmethod-name: %s" % (self.api.interface, self.name)) + def call(self, options=None): + if options is None: + options = {} + logger.info("interface: %s\tmethod-name: %s" % + (self.api.interface, self.name)) return self.api.manager.GetVersion(self.api, options)