Skip to content

Commit 79bc345

Browse files
authored
Merge pull request #1208 from lmlg/fs-key-rotation-fix
Fix test for ceph-fs key rotation
2 parents 31a3513 + 5541905 commit 79bc345

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

zaza/openstack/charm_tests/ceph/tests.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1829,8 +1829,11 @@ def _get_rgw_client(self, unit):
18291829
return next(iter(ret))[0]
18301830

18311831
def _get_fs_client(self, unit):
1832-
ret = self._get_all_keys(unit, lambda x: (x.startswith('mds.') and
1833-
x != 'mds.ceph-fs'))
1832+
def _filter_fs(name):
1833+
return (name.startswith('mds.') and
1834+
name not in ('mds.ceph-fs', 'mds.None'))
1835+
1836+
ret = self._get_all_keys(unit, _filter_fs)
18341837
if not ret:
18351838
return None
18361839
return next(iter(ret))[0]

0 commit comments

Comments
 (0)