From: Zack Cerza Date: Fri, 12 Dec 2014 00:26:11 +0000 (-0700) Subject: Fix breakage in 6114acc X-Git-Tag: 1.1.0~1067^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f4de67e1c7b29ca66d715dcd98c058fc28a92b1c;p=teuthology.git Fix breakage in 6114acc Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 4e5bebe6..b77c24fb 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -76,7 +76,7 @@ def lock_machines(ctx, config): to_reserve = 5 # change the status during the locking process - report.try_push_job_info(config, dict(status='waiting')) + report.try_push_job_info(ctx.config, dict(status='waiting')) while True: # get a candidate list of machines @@ -148,7 +148,7 @@ def lock_machines(ctx, config): ).splitlines() log.info('\n '.join(['Locked targets:', ] + locked_targets)) # successfully locked machines, change status back to running - report.try_push_job_info(config, dict(status='running')) + report.try_push_job_info(ctx.config, dict(status='running')) break elif not ctx.block: assert 0, 'not enough machines are available' @@ -164,6 +164,7 @@ def lock_machines(ctx, config): for machine in ctx.config['targets'].iterkeys(): lock.unlock_one(ctx, machine, ctx.owner) + def save_config(ctx, config): """ Store the config in a yaml file