]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix a linter error
authorZack Cerza <zack.cerza@inktank.com>
Tue, 26 Aug 2014 17:47:48 +0000 (11:47 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Tue, 26 Aug 2014 17:47:48 +0000 (11:47 -0600)
Wasn't much of a bug, but still.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/lock.py

index e3c466d862bf6d654cba46e9d6ea3039bd688186..c210f6a4d8b822a3c7034fbd37ea9f8e72e28908 100644 (file)
@@ -82,6 +82,9 @@ def main(ctx):
                 else:
                     log.error("Lockserver doesn't know about machine: %s" %
                               machine)
+            # Delete this variable to avoid linter errors when we redefine it
+            # in a list comprehension below
+            del machine
         else:
             statuses = list_locks()
         vmachines = []