summaryrefslogtreecommitdiff
path: root/src/leap/services/soledad/soledadconfig.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-08 12:19:45 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-08 12:19:45 -0300
commit2bb9737ef4b17b363e95bd5221cbba34751c75bd (patch)
tree9ff6319a6acd8dddc6f112f037fb848e31afae9d /src/leap/services/soledad/soledadconfig.py
parent17affdf90bb8d4f866128bacfb68e13877d4a2b7 (diff)
parent3d07947ebca6b9dc339fc040cc4498ee94b9a42c (diff)
Merge remote-tracking branch 'ivan/feature/3404_multiple-schema-support-for-soledad' into develop
Diffstat (limited to 'src/leap/services/soledad/soledadconfig.py')
-rw-r--r--src/leap/services/soledad/soledadconfig.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/leap/services/soledad/soledadconfig.py b/src/leap/services/soledad/soledadconfig.py
index 80a82d11..a2367692 100644
--- a/src/leap/services/soledad/soledadconfig.py
+++ b/src/leap/services/soledad/soledadconfig.py
@@ -21,7 +21,7 @@ Soledad configuration
import logging
from leap.common.config.baseconfig import BaseConfig
-from leap.services.soledad.soledadspec import soledad_config_spec
+from leap.services.soledad.soledadspec import get_schema
logger = logging.getLogger(__name__)
@@ -34,11 +34,13 @@ class SoledadConfig(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 soledad_config_spec
+ return get_schema(self._api_version)
def get_hosts(self):
return self._safe_get_value("hosts")