]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: Call the check_lock function, not the module
authorZack Cerza <zack@redhat.com>
Fri, 4 Nov 2016 15:23:19 +0000 (09:23 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 4 Nov 2016 15:23:19 +0000 (09:23 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/nuke/__init__.py

index e05413236932e5b36bcd450c08637ce33a12c9ea..502a694b1084997cb090f512b63968548d3cb9e8 100644 (file)
@@ -305,7 +305,7 @@ def nuke_helper(ctx, should_unlock):
     if ctx.check_locks:
         # does not check to ensure if the node is 'up'
         # we want to be able to nuke a downed node
-        check_lock(ctx, None, check_up=False)
+        check_lock.check_lock(ctx, None, check_up=False)
     if (not ctx.noipmi and 'ipmi_user' in config and
             'vpm' not in shortname):
         try: