From: Tony Mack Date: Fri, 6 Jan 2012 16:50:14 +0000 (-0500) Subject: 'geni_api' should be in the top level struct, not the code struct X-Git-Tag: sfa-2.0-9~12 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d8c68348a518f1fbc000406616ed4a39f2b9dfc7;p=sfa.git 'geni_api' should be in the top level struct, not the code struct --- diff --git a/sfa/server/sfaapi.py b/sfa/server/sfaapi.py index afb71a42..b783369a 100644 --- a/sfa/server/sfaapi.py +++ b/sfa/server/sfaapi.py @@ -214,7 +214,6 @@ class SfaApi (XmlrpcApi): def get_geni_code(self, result): code = { - 'geni_api': 2, 'geni_code': GENICODE.SUCCESS, 'am_type': 'sfa', 'am_code': None, @@ -239,6 +238,7 @@ class SfaApi (XmlrpcApi): def prepare_response_v2_am(self, result): response = { + 'geni_api': 2, 'code': self.get_geni_code(result), 'value': self.get_geni_value(result), 'output': self.get_geni_output(result),