From: Zack Cerza Date: Thu, 23 Jun 2022 21:03:27 +0000 (-0600) Subject: nuke: Tolerate null node description X-Git-Tag: 1.2.0~148^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afb3fef2e07575a875708ec6dbaa3cb2cc5a55b7;p=teuthology.git nuke: Tolerate null node description Fixes a TypeError Signed-off-by: Zack Cerza --- diff --git a/teuthology/nuke/__init__.py b/teuthology/nuke/__init__.py index 3ec78bb82..540a6b836 100644 --- a/teuthology/nuke/__init__.py +++ b/teuthology/nuke/__init__.py @@ -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: "