]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: Tolerate null node description 1774/head
authorZack Cerza <zack@redhat.com>
Thu, 23 Jun 2022 21:03:27 +0000 (15:03 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 3 Aug 2022 17:24:01 +0000 (11:24 -0600)
Fixes a TypeError

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/nuke/__init__.py

index 3ec78bb8242743030f386ec95b9bad6b195dc427..540a6b836ff9bff2999ffa9e091dff76938b3472 100644 (file)
@@ -243,7 +243,7 @@ def nuke(ctx, should_unlock, sync_clocks=True, noipmi=False, keep_logs=False, sh
     with parallel() as p:
         for target, hostkey in ctx.config['targets'].items():
             status = get_status(target)
-            if ctx.name and ctx.name not in status['description']:
+            if ctx.name and ctx.name not in status.get('description', ""):
                 total_unnuked[target] = hostkey
                 log.info(
                     f"Not nuking {target} because description doesn't match: "