Use the correct callable

This commit is contained in:
Luciano Lo Giudice
2024-04-11 16:06:19 -03:00
parent cbc117208e
commit 2f557c531d

View File

@@ -1799,7 +1799,7 @@ class CephMonKeyRotationTests(test_utils.BaseCharmTest):
self.assertTrue(entity_filter(first[0]))
def _get_rgw_client(self, unit):
ret = self._get_all_keys(unit, 'client.rgw')
ret = self._get_all_keys(unit, lambda x: x.startswith('client.rgw'))
if not ret:
return None
return next(iter(ret))[0]