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 <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-24 14:48:14 -04:00
parent 7a6863ab09
commit 466add5613
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 1 additions and 1 deletions

View File

@ -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: