X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FGetVersion.py;h=4bbc86d800d4ac7d70b9b362979714e13a864f8f;hb=a89ccd803a21501565e4f4432293a907f168b972;hp=cb682e44ce984033d6dee6d9ced9a0056471dd08;hpb=7d41479ffc629cabcab476a94e4e93be41b29ecf;p=sfa.git diff --git a/sfa/methods/GetVersion.py b/sfa/methods/GetVersion.py index cb682e44..4bbc86d8 100644 --- a/sfa/methods/GetVersion.py +++ b/sfa/methods/GetVersion.py @@ -8,13 +8,16 @@ class GetVersion(Method): Returns this GENI Aggregate Manager's Version Information @return version """ - interfaces = ['registry','aggregate', 'slicemgr', 'component'] + interfaces = ['registry', 'aggregate', 'slicemgr', '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 = {} + self.api.logger.info("interface: %s\tmethod-name: %s" % + (self.api.interface, self.name)) return self.api.manager.GetVersion(self.api, options)