From: Zack Cerza Date: Thu, 26 Sep 2013 19:03:44 +0000 (-0500) Subject: Move 'import os' to inside main() X-Git-Tag: 1.1.0~1850^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F114%2Fhead;p=teuthology.git Move 'import os' to inside main() This is necessary because of the monkey-patching. --- diff --git a/teuthology/nuke.py b/teuthology/nuke.py index 01bbe8a67..ed9252d93 100644 --- a/teuthology/nuke.py +++ b/teuthology/nuke.py @@ -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,