]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix breakage in 6114acc
authorZack Cerza <zack@redhat.com>
Fri, 12 Dec 2014 00:26:11 +0000 (17:26 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 12 Dec 2014 00:26:11 +0000 (17:26 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/internal.py

index 4e5bebe69a0ce9a4091ff9d9008ce0bd30a31e33..b77c24fbbb6c5937bf660ed9216dfa401843b143 100644 (file)
@@ -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