]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds_thrash: Fix a potential getitem on None
authorJohn Spray <john.spray@inktank.com>
Thu, 27 Feb 2014 14:22:02 +0000 (14:22 +0000)
committerJohn Spray <john.spray@inktank.com>
Thu, 27 Feb 2014 18:39:45 +0000 (18:39 +0000)
commit8dfcfa4a7e926d460dbbc16ecdbfb4259e59d50d
treef09f741587c753ad3b4d936afd48d50989f047ae
parent22825c25a5939047134e443f0395cf75894fec16
mds_thrash: Fix a potential getitem on None

get_mds_status returns None for things it can't see,
so have to check for Noneness on all its outputs.

Signed-off-by: John Spray <john.spray@inktank.com>
teuthology/task/mds_thrash.py