Skip to content

Commit

Permalink
Make push_inventory() a regular function
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
  • Loading branch information
Zack Cerza committed Sep 12, 2014
1 parent e0594ee commit 3d564e0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions teuthology/task/internal.py
Expand Up @@ -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():
Expand All @@ -240,7 +238,6 @@ def push():
lock.update_inventory(info)
try:
push()
yield
except Exception:
log.exception("Error pushing inventory")

Expand Down

0 comments on commit 3d564e0

Please sign in to comment.