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

[cloud][aws] Use binary read for inventory cache file

This commit is contained in:
Ryan S. Brown 2017-02-16 09:42:46 -05:00
parent 413dfa7273
commit 3c25a39b3e

View file

@ -1526,7 +1526,7 @@ class Ec2Inventory(object):
def load_index_from_cache(self):
''' Reads the index from the cache file sets self.index '''
with open(self.cache_path_index, 'r') as f:
with open(self.cache_path_index, 'rb') as f:
self.index = json.load(f)
def write_to_cache(self, data, filename):