[cloud][aws] Use binary read for inventory cache file
This commit is contained in:
parent
413dfa7273
commit
3c25a39b3e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue