From 0a4f5117df47e46574e7cdcfeb86bed52b774e87 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 25 Aug 2017 15:49:53 -0400 Subject: [PATCH] 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 --- roles/upload-pypi/tasks/main.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/roles/upload-pypi/tasks/main.yaml b/roles/upload-pypi/tasks/main.yaml index 0805e1fb6..871f3d1d5 100644 --- a/roles/upload-pypi/tasks/main.yaml +++ b/roles/upload-pypi/tasks/main.yaml @@ -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