]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Move 'import os' to inside main() 114/head
authorZack Cerza <zack@cerza.org>
Thu, 26 Sep 2013 19:03:44 +0000 (14:03 -0500)
committerZack Cerza <zack@cerza.org>
Thu, 26 Sep 2013 19:03:44 +0000 (14:03 -0500)
This is necessary because of the monkey-patching.

teuthology/nuke.py

index 01bbe8a67a89de86bf93b04f76c296a63bb3999c..ed9252d93190e75005624afb1fdb9d9fa9c5bbeb 100644 (file)
@@ -1,5 +1,4 @@
 import argparse
-import os
 import yaml
 import textwrap
 from argparse import RawTextHelpFormatter
@@ -366,7 +365,6 @@ def main():
 
     if ctx.pid:
         if ctx.archive:
-            import os
             log.info('Killing teuthology process at pid %d', ctx.pid)
             os.system('grep -q %s /proc/%d/cmdline && sudo kill %d' % (
                     ctx.archive,