From c2fc5614277095b0b4eca371f1b7100d53f1cf38 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 24 Jul 2014 10:03:38 -0600 Subject: [PATCH] Remove oddly-placed, broken import Signed-off-by: Zack Cerza --- teuthology/task/samba.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teuthology/task/samba.py b/teuthology/task/samba.py index fa13f04726512..6e0932f283339 100644 --- a/teuthology/task/samba.py +++ b/teuthology/task/samba.py @@ -4,6 +4,7 @@ Samba import contextlib import logging import sys +import time from teuthology import misc as teuthology from ..orchestra import run @@ -11,6 +12,7 @@ from ..orchestra.daemon import DaemonGroup log = logging.getLogger(__name__) + def get_sambas(ctx, roles): """ Scan for roles that are samba. Yield the id of the the samba role @@ -27,6 +29,7 @@ def get_sambas(ctx, roles): (remote,) = ctx.cluster.only(role).remotes.iterkeys() yield (id_, remote) + @contextlib.contextmanager def task(ctx, config): """ @@ -93,7 +96,6 @@ def task(ctx, config): testdir = teuthology.get_testdir(ctx) - from teuthology.task.ceph import DaemonGroup if not hasattr(ctx, 'daemons'): ctx.daemons = DaemonGroup() @@ -175,7 +177,6 @@ def task(ctx, config): ) # let smbd initialize, probably a better way... - import time seconds_to_sleep = 100 log.info('Sleeping for %s seconds...' % seconds_to_sleep) time.sleep(seconds_to_sleep) -- 2.39.5