From 2b9779c62b6cf36e4e3870eb589ac7e5ac2ad220 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 21 Mar 2023 11:45:16 -0600 Subject: [PATCH] nuke: Fix import of task.internal.check_lock Signed-off-by: Zack Cerza --- teuthology/nuke/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/nuke/__init__.py b/teuthology/nuke/__init__.py index 25f145c65d..76d7420cf1 100644 --- a/teuthology/nuke/__init__.py +++ b/teuthology/nuke/__init__.py @@ -31,6 +31,7 @@ from teuthology.openstack import OpenStack, OpenStackInstance, enforce_json_dict from teuthology.orchestra.remote import Remote from teuthology.parallel import parallel from teuthology.task import internal +from teuthology.task.internal import check_lock log = logging.getLogger(__name__) @@ -314,7 +315,7 @@ def nuke_helper(ctx, should_unlock, keep_logs, should_reboot): if ctx.check_locks: # does not check to ensure if the node is 'up' # we want to be able to nuke a downed node - internal.check_lock.check_lock(ctx, None, check_up=False) + check_lock.check_lock(ctx, None, check_up=False) status = get_status(host) if status['machine_type'] in provision.fog.get_types(): remote.console.power_off() -- 2.39.5