]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: Fix import of task.internal.check_lock 1825/head
authorZack Cerza <zack@redhat.com>
Tue, 21 Mar 2023 17:45:16 +0000 (11:45 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 21 Mar 2023 17:45:16 +0000 (11:45 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/nuke/__init__.py

index 25f145c65d16b67d8ca3654c60d5f941235d3ce6..76d7420cf1453fc3126fc4ab2e6c35f9c9358e73 100644 (file)
@@ -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()