diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-08-08 12:12:51 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-08-08 12:12:51 -0300 |
commit | 6060b522bfcbcc379a37c315af83f830c0b0dd71 (patch) | |
tree | ec63fab495c5eb3358924eacc5bd6f801f1e3db7 /src/leap/services/soledad/soledadbootstrapper.py | |
parent | 55f51fee46c6b6a9189161a9a5648410400772ad (diff) |
Update code to use new Soledad schema selection.
Diffstat (limited to 'src/leap/services/soledad/soledadbootstrapper.py')
-rw-r--r-- | src/leap/services/soledad/soledadbootstrapper.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/services/soledad/soledadbootstrapper.py b/src/leap/services/soledad/soledadbootstrapper.py index ac3243c1..422352ea 100644 --- a/src/leap/services/soledad/soledadbootstrapper.py +++ b/src/leap/services/soledad/soledadbootstrapper.py @@ -139,10 +139,12 @@ class SoledadBootstrapper(AbstractBootstrapper): if self._download_if_needed and mtime: headers['if-modified-since'] = mtime + api_version = self._provider_config.get_api_version() + # there is some confusion with this uri, config_uri = "%s/%s/config/soledad-service.json" % ( self._provider_config.get_api_uri(), - self._provider_config.get_api_version()) + api_version) logger.debug('Downloading soledad config from: %s' % config_uri) srp_auth = SRPAuth(self._provider_config) @@ -158,6 +160,8 @@ class SoledadBootstrapper(AbstractBootstrapper): cookies=cookies) res.raise_for_status() + self._soledad_config.set_api_version(api_version) + # Not modified if res.status_code == 304: logger.debug("Soledad definition has not been modified") |