From afb3fef2e07575a875708ec6dbaa3cb2cc5a55b7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 23 Jun 2022 15:03:27 -0600 Subject: [PATCH] nuke: Tolerate null node description Fixes a TypeError Signed-off-by: Zack Cerza --- teuthology/nuke/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/nuke/__init__.py b/teuthology/nuke/__init__.py index 3ec78bb824..540a6b836f 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: " -- 2.39.5