From: Loic Dachary Date: Mon, 25 Aug 2014 16:13:45 +0000 (+0200) Subject: convert nuke-on-error to boolean X-Git-Tag: 1.1.0~1196^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8de60d3ef27d29347f093ca0c97c10ace831b67e;p=teuthology.git convert nuke-on-error to boolean Signed-off-by: Loic Dachary --- diff --git a/teuthology/run.py b/teuthology/run.py index 0385e6340..fa50a54b5 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -184,7 +184,7 @@ def main(ctx): try: run_tasks(tasks=ctx.config['tasks'], ctx=ctx) finally: - if not ctx.summary.get('success') and ctx.config.get('nuke-on-error'): + if not ctx.summary.get('success') and bool(ctx.config.get('nuke-on-error')): # only unlock if we locked them in the first place nuke(ctx, ctx.lock) if ctx.archive is not None: