|
|
@ -249,12 +249,12 @@ def _get_quotas(sdk, module, cloud, project):
|
|
|
|
quota = {}
|
|
|
|
quota = {}
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
quota['volume'] = _get_volume_quotas(cloud, project)
|
|
|
|
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.")
|
|
|
|
module.warn("No public endpoint for volumev2 service was found. Ignoring volume quotas.")
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
quota['network'] = _get_network_quotas(cloud, project)
|
|
|
|
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.")
|
|
|
|
module.warn("No public endpoint for network service was found. Ignoring network quotas.")
|
|
|
|
|
|
|
|
|
|
|
|
quota['compute'] = _get_compute_quotas(cloud, project)
|
|
|
|
quota['compute'] = _get_compute_quotas(cloud, project)
|
|
|
|