Add API profiling logging of openstack list_volumes

The addition of the list_volumes API call was in review during the
same time as the addition of the API profiling metrics, so we missed
adding it.  Correct that.

Change-Id: Ie6b5806e5ac48585f8af19bed3257232c9974968
This commit is contained in:
James E. Blair 2023-03-15 13:39:57 -07:00
parent f9422d6342
commit 939a39feda
1 changed files with 2 additions and 1 deletions

View File

@ -696,7 +696,8 @@ class OpenStackAdapter(statemachine.Adapter):
@cachetools.func.ttl_cache(maxsize=1, ttl=CACHE_TTL)
def _listVolumes(self):
try:
return self._client.list_volumes()
with Timer(self.log, 'API call list_volumes'):
return self._client.list_volumes()
except EndpointNotFound:
return []