summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v2_0/role.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2015-10-21 12:01:56 -0500
committerSteve Martinelli <stevemar@ca.ibm.com>2015-12-02 01:55:14 +0000
commitbf090c69c2e055285fc4fe45af0a5f66d6dc7759 (patch)
tree16447f8742a5b091e35c0812e0e396a28b180d33 /openstackclient/identity/v2_0/role.py
parenta9a7caf934f36c95727c30bdf2b1275609d3c0fc (diff)
downloadpython-openstackclient-bf090c69c2e055285fc4fe45af0a5f66d6dc7759.tar.gz
Switch to ksa Session
* Change session imports to keystoneauth1 * Change keystoneclient.exception imports to keystoneauth1 * Change exceptions raised from internal API from keystoneclient to openstack.common Change-Id: I046d89f561d6fe04baae53726f9749d2e7fe2056
Diffstat (limited to 'openstackclient/identity/v2_0/role.py')
-rw-r--r--openstackclient/identity/v2_0/role.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/identity/v2_0/role.py b/openstackclient/identity/v2_0/role.py
index e98f8cb3..cab6b4a5 100644
--- a/openstackclient/identity/v2_0/role.py
+++ b/openstackclient/identity/v2_0/role.py
@@ -21,7 +21,7 @@ import six
from cliff import command
from cliff import lister
from cliff import show
-from keystoneclient import exceptions as ksc_exc
+from keystoneauth1 import exceptions as ks_exc
from openstackclient.common import exceptions
from openstackclient.common import utils
@@ -98,7 +98,7 @@ class CreateRole(show.ShowOne):
identity_client = self.app.client_manager.identity
try:
role = identity_client.roles.create(parsed_args.role_name)
- except ksc_exc.Conflict as e:
+ except ks_exc.Conflict as e:
if parsed_args.or_show:
role = utils.find_resource(
identity_client.roles,