summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2012-12-03 14:56:36 -0200
committerdrebs <drebs@leap.se>2012-12-03 15:07:34 -0200
commitd6196f88f390d1ee8d4a3f26aa4881fe15bcd2e0 (patch)
tree936b19a26a36d868515b471939265b30d97412ab /src
parent2812f05c7997766a0527628877a28efd39e0ff1c (diff)
Fix get_auth parameters.
Diffstat (limited to 'src')
-rw-r--r--src/leap/soledad/openstack.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/leap/soledad/openstack.py b/src/leap/soledad/openstack.py
index 514a4c58..9a8a6166 100644
--- a/src/leap/soledad/openstack.py
+++ b/src/leap/soledad/openstack.py
@@ -15,6 +15,7 @@ class OpenStackDatabase(CommonBackend):
self.set_document_factory(LeapDocument)
self._connection = swiftclient.Connection(self._auth_url, self._user,
self._auth_key)
+ self._get_auth()
#-------------------------------------------------------------------------
# implemented methods from Database
@@ -125,9 +126,7 @@ class OpenStackDatabase(CommonBackend):
raise NotImplementedError(self._initialize)
def _get_auth(self):
- self._url, self._auth_token = self._connection.get_auth(self._auth_url,
- self._user,
- self._auth_key)
+ self._url, self._auth_token = self._connection.get_auth()
return self._url, self.auth_token