From aaf9b51c601c0829578dfa3ec47be8c271ec7c86 Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 31 Jan 2014 20:45:31 +0000 Subject: [PATCH] Fix MDS wait when get_mds_status returns None --- teuthology/task/mds_thrash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teuthology/task/mds_thrash.py b/teuthology/task/mds_thrash.py index c371e50cc90..8a58932a66a 100644 --- a/teuthology/task/mds_thrash.py +++ b/teuthology/task/mds_thrash.py @@ -274,9 +274,9 @@ def task(ctx, config): if isinstance(s, dict): statuses_by_rank[s['rank']] = s - ready = filter(lambda (_,s): s['state'] == 'up:active' - or s['state'] == 'up:standby' - or s['state'] == 'up:standby-replay', + ready = filter(lambda (_, s): s is not None and (s['state'] == 'up:active' + or s['state'] == 'up:standby' + or s['state'] == 'up:standby-replay'), statuses.items()) if len(ready) == len(statuses): break