Skip to content

Commit

Permalink
Merge pull request ceph#1774 from ceph/nuke-typerror
Browse files Browse the repository at this point in the history
nuke: Tolerate null node description
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
  • Loading branch information
kamoltat authored Aug 3, 2022
2 parents 303d2ca + afb3fef commit 9e4bf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teuthology/nuke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down

0 comments on commit 9e4bf63

Please sign in to comment.