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

pull/20457/head
Ryan S. Brown 9 years ago
parent 413dfa7273
commit 3c25a39b3e

@ -1526,7 +1526,7 @@ class Ec2Inventory(object):
def load_index_from_cache(self): def load_index_from_cache(self):
''' Reads the index from the cache file sets self.index ''' ''' 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) self.index = json.load(f)
def write_to_cache(self, data, filename): def write_to_cache(self, data, filename):

Loading…
Cancel
Save