mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 16:48:36 +00:00
Merge commit 'refs/pull/160/head' of github.com:camptocamp/odoo-cloud-platform into merge-branch-2660-DES-128-960dee34
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
'external_dependencies': {
|
||||
'python': ['swiftclient',
|
||||
'keystoneclient',
|
||||
'keystoneauth1',
|
||||
],
|
||||
},
|
||||
'website': 'https://www.camptocamp.com',
|
||||
|
||||
@@ -17,9 +17,12 @@ _logger = logging.getLogger(__name__)
|
||||
try:
|
||||
import swiftclient
|
||||
import keystoneauth1
|
||||
from keystoneauth1 import identity
|
||||
from swiftclient.exceptions import ClientException
|
||||
except ImportError:
|
||||
swiftclient = None
|
||||
keystoneauth1 = None
|
||||
identity = None
|
||||
ClientException = None
|
||||
_logger.debug("Cannot 'import swiftclient'.")
|
||||
|
||||
@@ -55,7 +58,7 @@ class SwiftSessionStore(object):
|
||||
key = self._get_key(auth_url, username, password, project_name)
|
||||
session = self._sessions.get(key)
|
||||
if not session:
|
||||
auth = keystoneauth1.identity.v3.Password(
|
||||
auth = identity.v3.Password(
|
||||
username=username,
|
||||
password=password,
|
||||
project_name=project_name,
|
||||
|
||||
Reference in New Issue
Block a user