Keystoneclient supports Py3K now

Change-Id: Iddc9ff109ebf1a5c1629136df53374ab4a8d7c59
This commit is contained in:
Flavio Percoco
2014-01-15 17:31:12 +01:00
parent ee52825498
commit 64a19e89f4

View File

@@ -14,24 +14,14 @@
# limitations under the License.
import six
from marconiclient.auth import base
if not six.PY3:
from marconiclient.auth import keystone
else:
keystone = None
# NOTE(flaper87): Replace with logging
print('Keystone auth does not support Py3K')
from marconiclient.auth import keystone
_BACKENDS = {
'noauth': base.NoAuth,
'keystone': keystone.KeystoneAuth
}
if keystone:
_BACKENDS['keystone'] = keystone.KeystoneAuth
def get_backend(backend='noauth', options=None):
"""Loads backend `auth_backend`