1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix encoding issue in shippable downloader.

This commit is contained in:
Matt Clay 2017-03-03 09:23:55 -08:00
parent 673bfc06b9
commit 72c96b3ac3

View file

@ -138,7 +138,7 @@ def extract_contents(args, path, output_dir):
items = json.load(json_fd) items = json.load(json_fd)
for item in items: for item in items:
contents = item['contents'] contents = item['contents'].encode('utf-8')
path = output_dir + '/' + re.sub('^/*', '', item['path']) path = output_dir + '/' + re.sub('^/*', '', item['path'])
directory = os.path.dirname(path) directory = os.path.dirname(path)