From 8de60d3ef27d29347f093ca0c97c10ace831b67e Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Mon, 25 Aug 2014 18:13:45 +0200 Subject: [PATCH] convert nuke-on-error to boolean Signed-off-by: Loic Dachary --- teuthology/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/run.py b/teuthology/run.py index 0385e63403..fa50a54b51 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: -- 2.39.5