]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
convert nuke-on-error to boolean 317/head
authorLoic Dachary <loic-201408@dachary.org>
Mon, 25 Aug 2014 16:13:45 +0000 (18:13 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Mon, 25 Aug 2014 16:14:04 +0000 (18:14 +0200)
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
teuthology/run.py

index 0385e63403a343709254b67d387f99a0ffa53d69..fa50a54b511648a77feca6d6d1cbe528a4f4c994 100644 (file)
@@ -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: