Skip to content

Commit

Permalink
Use already existing functionality to fetch RGW client
Browse files Browse the repository at this point in the history
  • Loading branch information
lmlg committed Apr 10, 2024
1 parent 8fe9a11 commit f411c0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zaza/openstack/charm_tests/ceph/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1793,9 +1793,10 @@ def entity_filter(name):
self.assertTrue(entity_filter(first[0]))

def _get_rgw_client(self, unit):
cmd = 'sudo ceph auth ls | grep client.rgw'
result = zaza_model.run_on_unit(unit, cmd)
return result['Stdout'].strip()
ret = self._get_all_keys(unit, 'client.rgw')
if not ret:
return None
return next(iter(ret))[0]

def test_key_rotate(self):
"""Test that rotating the keys actually changes them."""
Expand Down

0 comments on commit f411c0b

Please sign in to comment.