Skip to content

Commit

Permalink
[cloud][aws] Use binary read for inventory cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansb committed Feb 16, 2017
1 parent 413dfa7 commit 3c25a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/inventory/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ def get_inventory_from_cache(self):
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):
Expand Down

0 comments on commit 3c25a39

Please sign in to comment.