From 466add5613a006179a14b689bbe0dc743fd28cee Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 24 Aug 2017 14:48:14 -0400 Subject: [PATCH] Fix matched condition for gpg signing We actually want to sign the items we found if greater then zero, as it results the number of files found. Change-Id: I48014bb437a575c1d639a8a68e76b7ed06df2278 Signed-off-by: Paul Belanger --- roles/sign-artifacts/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/sign-artifacts/tasks/main.yaml b/roles/sign-artifacts/tasks/main.yaml index 203ae84e8..a84376183 100644 --- a/roles/sign-artifacts/tasks/main.yaml +++ b/roles/sign-artifacts/tasks/main.yaml @@ -23,7 +23,7 @@ - name: Sign artifacts command: "gpg --homedir {{ gnupg_tmpdir.path }} --armor --detach-sign {{ item.path }}" with_items: "{{ artifacts.files }}" - when: artifacts.matched|bool + when: artifacts.matched > 0 - name: Delete keyring directory file: