mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-18 14:21:06 -07:00
Fix missing exceptions (#45775)
* Replace non-existing OpenStackCloudTimeout exception. Fixes: #45151 * Replace OpenStackCloudURINotFound that doesn't exist in the 'exceptions' module
This commit is contained in:
parent
bfbf012da4
commit
eb39c461ce
4 changed files with 5 additions and 5 deletions
|
@ -249,12 +249,12 @@ def _get_quotas(sdk, module, cloud, project):
|
|||
quota = {}
|
||||
try:
|
||||
quota['volume'] = _get_volume_quotas(cloud, project)
|
||||
except sdk.exceptions.OpenStackCloudURINotFound:
|
||||
except sdk.exceptions.NotFoundException:
|
||||
module.warn("No public endpoint for volumev2 service was found. Ignoring volume quotas.")
|
||||
|
||||
try:
|
||||
quota['network'] = _get_network_quotas(cloud, project)
|
||||
except sdk.exceptions.OpenStackCloudURINotFound:
|
||||
except sdk.exceptions.NotFoundException:
|
||||
module.warn("No public endpoint for network service was found. Ignoring network quotas.")
|
||||
|
||||
quota['compute'] = _get_compute_quotas(cloud, project)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue