diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2015-10-21 12:01:56 -0500 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-12-02 01:55:14 +0000 |
| commit | bf090c69c2e055285fc4fe45af0a5f66d6dc7759 (patch) | |
| tree | 16447f8742a5b091e35c0812e0e396a28b180d33 /openstackclient/compute | |
| parent | a9a7caf934f36c95727c30bdf2b1275609d3c0fc (diff) | |
| download | python-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/compute')
| -rw-r--r-- | openstackclient/compute/v2/security_group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/compute/v2/security_group.py b/openstackclient/compute/v2/security_group.py index 68f086bc..6d38195c 100644 --- a/openstackclient/compute/v2/security_group.py +++ b/openstackclient/compute/v2/security_group.py @@ -23,7 +23,7 @@ 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 try: from novaclient.v2 import security_group_rules @@ -241,7 +241,7 @@ class ListSecurityGroup(lister.Lister): project_hash = {} try: projects = self.app.client_manager.identity.projects.list() - except ksc_exc.ClientException: + except ks_exc.ClientException: # This fails when the user is not an admin, just move along pass else: |
