Skip to content

Commit b70a957

Browse files
Fix migrate command
1 parent ac6a240 commit b70a957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudinary_cli/modules/migrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def migrate(upload_mapping, file, delimiter, verbose):
2323
items = map(lambda x: cloudinary_url(join(mapping['folder'], x[len(mapping['template']):])),
2424
filter(lambda x: x != '', items))
2525
for i in items:
26-
res = head(i[0])
26+
res = head(i)
2727
if res.status_code != 200:
2828
logger.error("Failed uploading asset: " + res.__dict__['headers']['X-Cld-Error'])
2929
elif verbose:
30-
logger.info("Uploaded {}".format(i[0]))
30+
logger.info("Uploaded {}".format(i))

0 commit comments

Comments
 (0)