[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):