Fix security group list command
Security group list command tries to get a project list and this may fail with a multitude of exceptions including but not limited to 401, 404, ConnectionRefused and EndpointNotFound. Rather than try to capture every possibility, this patch just catches the base class. Converting project ids to names is less important than having a working security group list command. Change-Id: I68214d2680bad907f9d04ad3ca2f62cf3feee028 Closes-Bug: #1459629
This commit is contained in:
parent
cae03c6834
commit
b2cf651100
@ -161,7 +161,7 @@ class ListSecurityGroup(lister.Lister):
|
||||
project_hash = {}
|
||||
try:
|
||||
projects = self.app.client_manager.identity.projects.list()
|
||||
except ksc_exc.Forbidden:
|
||||
except ksc_exc.ClientException:
|
||||
# This fails when the user is not an admin, just move along
|
||||
pass
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user