diff --git a/teuthology/nuke/__init__.py b/teuthology/nuke/__init__.py index fc498dd9a..8a2985b9e 100644 --- a/teuthology/nuke/__init__.py +++ b/teuthology/nuke/__init__.py @@ -245,11 +245,11 @@ 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.get('description', ""): + if ctx.name and ctx.name not in (status.get('description') or ""): total_unnuked[target] = hostkey log.info( f"Not nuking {target} because description doesn't match: " - f"{ctx.name} != {status['description']}" + f"{ctx.name} != {status.get('description')}" ) continue elif status.get('up') is False: