summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/sops-inventory/sops_inventory/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sops-inventory/sops_inventory/__main__.py b/tools/sops-inventory/sops_inventory/__main__.py
index 3f694917..f84567d3 100644
--- a/tools/sops-inventory/sops_inventory/__main__.py
+++ b/tools/sops-inventory/sops_inventory/__main__.py
@@ -53,7 +53,7 @@ def sops_files(path):
53 files = sorted(map(lambda child: path / child.decode('utf-8').strip(), readnull(proc.stdout)), key=attrgetter('parts')) 53 files = sorted(map(lambda child: path / child.decode('utf-8').strip(), readnull(proc.stdout)), key=attrgetter('parts'))
54 for child in files: 54 for child in files:
55 try: 55 try:
56 with child.open(mode='r') as fh: 56 with child.open(mode='rb') as fh:
57 yaml = load(fh, Loader=Loader) 57 yaml = load(fh, Loader=Loader)
58 if not yaml: 58 if not yaml:
59 raise ValueError('Could not parse YAML') 59 raise ValueError('Could not parse YAML')