Remove conditional check for upload-pypi

We don't actually need to conditionally check the result of find
because result.files will be an empty list if nothing is found.

Change-Id: I29a782df72064e602f072099dcba6ced3d4ea258
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-25 15:49:53 -04:00
parent 356c9807c3
commit 0a4f5117df
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 0 additions and 2 deletions

View File

@ -13,7 +13,6 @@
- name: Upload wheel with twine before tarballs
command: "{{ pypi_twine_executable }} upload -r {{ pypi_repository }} {{ item.path }}"
with_items: "{{ found_wheels.files }}"
when: found_wheels.matched|bool
- name: Find tarballs to upload
find:
@ -24,4 +23,3 @@
- name: Upload tarballs with twine
command: "{{ pypi_twine_executable }} upload -r {{ pypi_repository }} {{ item.path }}"
with_items: "{{ found_tarballs.files }}"
when: found_tarballs.matched|bool