From 21765ce4f828bf78eee0facf8862d5b6669100d5 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 26 Sep 2013 14:03:44 -0500 Subject: [PATCH] Move 'import os' to inside main() This is necessary because of the monkey-patching. --- teuthology/nuke.py | 2 -- 1 file changed, 2 deletions(-) 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, -- 2.47.3