summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-07 15:35:22 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-07 15:35:22 -0300
commit77e5ed38b2bc90799d691f159ed815d78c648dec (patch)
tree406a5f6d68f598c546f568fa8cbeebbf83f9e69d /src
parentf40e0317949b5ecc471da0fcde42ae269c2664fa (diff)
parent238d56066ed9a6f928d21ac8e3dbceef2189d8df (diff)
Merge remote-tracking branch 'ivan/feature/3403_add-support-for-multiple-schema' into develop
Diffstat (limited to 'src')
-rw-r--r--src/leap/config/providerconfig.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/leap/config/providerconfig.py b/src/leap/config/providerconfig.py
index eb097034..f899b17c 100644
--- a/src/leap/config/providerconfig.py
+++ b/src/leap/config/providerconfig.py
@@ -42,12 +42,25 @@ class ProviderConfig(BaseConfig):
def __init__(self):
BaseConfig.__init__(self)
- def _get_spec(self):
+ def _get_schema(self):
"""
- Returns the spec object for the specific configuration
+ Returns the schema corresponding to the version given.
+
+ :rtype: dict or None if the version is not supported.
"""
return leap_provider_spec
+ def _get_spec(self):
+ """
+ Returns the spec object for the specific configuration.
+
+ Override the BaseConfig one because we do not support multiple schemas
+ for the provider yet.
+
+ :rtype: dict or None if the version is not supported.
+ """
+ return self._get_schema()
+
def get_api_uri(self):
return self._safe_get_value("api_uri")