From 0763c6358f221bfbc3109914235609dc98463464 Mon Sep 17 00:00:00 2001
From: Monty Taylor <mordred@inaugust.com>
Date: Tue, 22 Aug 2017 19:07:13 -0400
Subject: [PATCH] Use item.path not item on results of find

Change-Id: I6feaf2512803a46ad48e551610571dfbb0cda294
---
 roles/upload-pypi/tasks/main.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/upload-pypi/tasks/main.yaml b/roles/upload-pypi/tasks/main.yaml
index e73a62e42..5c433e4b8 100644
--- a/roles/upload-pypi/tasks/main.yaml
+++ b/roles/upload-pypi/tasks/main.yaml
@@ -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