]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Make push_inventory() a regular function
authorZack Cerza <zack.cerza@inktank.com>
Fri, 12 Sep 2014 16:01:05 +0000 (10:01 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Fri, 12 Sep 2014 16:01:05 +0000 (10:01 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/internal.py

index 459740c4698681584c85f506e0c90063120b4f7e..e62d4eb5818ea9eb0448f52ef6382a04b5614800 100644 (file)
@@ -228,10 +228,8 @@ def connect(ctx, config):
             ctx.cluster.add(rem, rem.name)
 
 
-@contextlib.contextmanager
 def push_inventory(ctx, config):
     if not teuth_config.lock_server:
-        yield
         return
 
     def push():
@@ -240,7 +238,6 @@ def push_inventory(ctx, config):
             lock.update_inventory(info)
     try:
         push()
-        yield
     except Exception:
         log.exception("Error pushing inventory")