From 1a69390d630e4f886e46ab2d9817d2b352f05aa9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 30 Jan 2023 14:30:12 +0100 Subject: ... --- tools/sops-inventory/sops_inventory/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/sops-inventory') 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): files = sorted(map(lambda child: path / child.decode('utf-8').strip(), readnull(proc.stdout)), key=attrgetter('parts')) for child in files: try: - with child.open(mode='r') as fh: + with child.open(mode='rb') as fh: yaml = load(fh, Loader=Loader) if not yaml: raise ValueError('Could not parse YAML') -- cgit v1.2.3