Use item.path not item on results of find

Change-Id: I6feaf2512803a46ad48e551610571dfbb0cda294
This commit is contained in:
Monty Taylor 2017-08-22 19:07:13 -04:00
parent 14e2a22299
commit 0763c6358f
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -20,7 +20,7 @@
register: found_wheels
- name: Upload wheel with twine before tarballs
command: "twine upload -r {{ pypi_repository }} {{ item }}"
command: "twine upload -r {{ pypi_repository }} {{ item.path }}"
with_items: "{{ found_wheels.files }}"
when: found_wheels.matched|bool
@ -31,6 +31,6 @@
register: found_tarballs
- name: Upload tarballs with twine
command: "twine upload -r {{ pypi_repository }} {{ item }}"
command: "twine upload -r {{ pypi_repository }} {{ item.path }}"
with_items: "{{ found_tarballs.files }}"
when: found_tarballs.matched|bool