]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
misc: Fix for case status['description'] == None
authorSam Lang <sam.lang@inktank.com>
Wed, 17 Apr 2013 22:38:36 +0000 (17:38 -0500)
committerSam Lang <sam.lang@inktank.com>
Wed, 17 Apr 2013 22:43:14 +0000 (17:43 -0500)
Skip the machine that has a description, but the
value is None.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Warren Usui <warren.usui@inktank.com>
teuthology/misc.py

index 1a2e98ad9148422f70c5bb62389ebec57e1023b0..8da61628e34cbb33a4dfa800340f0bd4288410b8 100644 (file)
@@ -38,7 +38,7 @@ def get_testdir(ctx):
         jobids = {}
         for machine in ctx.config['targets'].iterkeys():
             status = lockstatus.get_status(ctx, machine)
-            if status is None or 'description' not in status:
+            if status is None or 'description' not in status or status['description'] is None:
                 continue
             jid = status['description'].split('/')[-1]
             if jid is None or jid == 'None':