]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Kernel task does not need to be a context manager.
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 30 Jun 2011 22:47:54 +0000 (15:47 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Thu, 30 Jun 2011 22:47:54 +0000 (15:47 -0700)
teuthology/task/kernel.py

index 91868f17f30c73d17eb98def13efb474db2c552d..cd21ff60fa37670f701a3b9d5584204205b386a6 100644 (file)
@@ -1,6 +1,5 @@
 from cStringIO import StringIO
 
-import contextlib
 import logging
 import os
 import errno
@@ -163,7 +162,6 @@ def reconnect(ctx, timeout):
              log.exception('error re-opening connections')
           raise
 
-@contextlib.contextmanager
 def task(ctx, config):
     """
     Make sure the specified kernel is installed.
@@ -243,4 +241,3 @@ def task(ctx, config):
         log.info('Checking client {client} for new kernel version...'.format(client=client))
         assert not need_to_install(ctx, client, sha1), \
             "Client did not boot to the new kernel!"
-    yield