Skip to content

Commit 9ad3439

Browse files
committed
Fix osc-lib interface change: catch osc-lib Forbidden
The patch https://review.opendev.org/#/c/673389/ introduced a regression by changing the osc-lib interface. The patch https://review.opendev.org/683119 changes the exception from the generic CommandError back to a specific Forbidden exception. This patch catches this exception and passes on, i.e. re-implements the same behavior as before. Story: 2006547 Change-Id: I17b1ec7abaa5b0828ccbcad40bd928565c5c59fb Signed-off-by: Andreas Florath <Andreas.Florath@telekom.de>
1 parent aa64eb6 commit 9ad3439

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/identity/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _find_identity_resource(identity_client_manager, name_or_id,
207207
name_or_id, **kwargs)
208208
if identity_resource is not None:
209209
return identity_resource
210-
except identity_exc.Forbidden:
210+
except exceptions.Forbidden:
211211
pass
212212

213213
return resource_type(None, {'id': name_or_id, 'name': name_or_id})

0 commit comments

Comments
 (0)