From e22233b5dbb51670710b8fffaa35641b51caf0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20P=C3=A1ral?= Date: Tue, 16 Apr 2019 09:06:20 +0200 Subject: [PATCH] taskotron: fix duplicate jobs prevention #2 In commit 77cf9ae061 I had the condition inverted, sigh. --- .../buildmaster-configure/templates/taskotron.master.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 index 3c80561d44..a8292d1ee2 100644 --- a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 +++ b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 @@ -284,7 +284,7 @@ def today(props): # (see https://pagure.io/taskotron/issue/273 ) factory.addStep(steps.MasterShellCommand( command=util.Interpolate( - 'test -d {{ public_artifacts_dir }}/%(kw:today)s/%(prop:uuid)s/ || ' + '! test -d {{ public_artifacts_dir }}/%(kw:today)s/%(prop:uuid)s/ || ' '( echo Multiple jobs with same UUID detected, aborting execution!; ' ' echo See https://pagure.io/taskotron/issue/273 ; ' ' exit 1 )',