From 1720eee33d072428369679a99062899c5c3321af Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 11 Aug 2014 14:14:45 -0600 Subject: [PATCH] Don't import from inside functions Signed-off-by: Zack Cerza --- teuthology/task/internal.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index fe92f1f28f..9fb1b38801 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -16,10 +16,11 @@ from teuthology import lockstatus from teuthology import lock from teuthology import misc as teuthology from teuthology.parallel import parallel -from ..orchestra import run +from ..orchestra import cluster, remote, run log = logging.getLogger(__name__) + @contextlib.contextmanager def base(ctx, config): """ @@ -201,8 +202,6 @@ def connect(ctx, config): Open a connection to a remote host. """ log.info('Opening connections...') - from ..orchestra import remote - from ..orchestra import cluster remotes = [] machs = [] for name in ctx.config['targets'].iterkeys(): -- 2.39.5