From ac8ec612da42acae82de032057c39068f87c5409 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 22 Nov 2011 15:50:03 -0500 Subject: [PATCH] renamed SFA_AM_API_VERSION to SFA_AGGREGATE_API_VERSION --- config/default_config.xml | 2 +- sfa/server/sfaapi.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/default_config.xml b/config/default_config.xml index 6d052fc9..0edfd488 100644 --- a/config/default_config.xml +++ b/config/default_config.xml @@ -33,7 +33,7 @@ Thierry Parmentelat The human readable name for this interface. - + Aggregate Manager API Version 1 The Aggregate API version diff --git a/sfa/server/sfaapi.py b/sfa/server/sfaapi.py index b0e93307..845ccffe 100644 --- a/sfa/server/sfaapi.py +++ b/sfa/server/sfaapi.py @@ -245,8 +245,8 @@ class SfaApi (XmlrpcApi): response """ if self.interface.lower() == 'aggregate': - if hasattr(self.config, 'SFA_AM_API_VERSION') and \ - self.config.SFA_AM_API_VERSION == "2": + if hasattr(self.config, 'SFA_AGGREGATE_API_VERSION') and \ + self.config.SFA_AGGREGATE_API_VERSION == "2": result = self.prepare_response_v2_am(result) return XmlrpcApi.prepare_response(self, result, method) -- 2.43.0