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:
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):
|
||||
''' 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):
|
||||
|
|
Loading…
Reference in a new issue