Skip to content

Commit e4af373

Browse files
authored
Merge pull request ceph#62880 from kshtsk/wip-random-sample-population
qa/tasks/ceph_manager: population must be a sequence
2 parents 14000ba + ce4a783 commit e4af373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/tasks/ceph_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ def get_pool(self):
22982298
"""
22992299
with self.lock:
23002300
if self.pools:
2301-
return random.sample(self.pools.keys(), 1)[0]
2301+
return random.sample(list(self.pools.keys()), 1)[0]
23022302

23032303
def get_pool_pg_num(self, pool_name):
23042304
"""

0 commit comments

Comments
 (0)