Skip to content

Commit

Permalink
Merge pull request #1208 from lmlg/fs-key-rotation-fix
Browse files Browse the repository at this point in the history
Fix test for ceph-fs key rotation
  • Loading branch information
sabaini authored May 16, 2024
2 parents 31a3513 + 5541905 commit 79bc345
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zaza/openstack/charm_tests/ceph/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1829,8 +1829,11 @@ def _get_rgw_client(self, unit):
return next(iter(ret))[0]

def _get_fs_client(self, unit):
ret = self._get_all_keys(unit, lambda x: (x.startswith('mds.') and
x != 'mds.ceph-fs'))
def _filter_fs(name):
return (name.startswith('mds.') and
name not in ('mds.ceph-fs', 'mds.None'))

ret = self._get_all_keys(unit, _filter_fs)
if not ret:
return None
return next(iter(ret))[0]
Expand Down

0 comments on commit 79bc345

Please sign in to comment.