From cb32ffd65a9a83edfb550ed80e2d6d644fd5d8fc Mon Sep 17 00:00:00 2001 From: Mike Garuccio Date: Fri, 3 Mar 2023 01:13:47 -0500 Subject: [PATCH] fixing logic issue --- pre_commit_hook_ensure_sops/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pre_commit_hook_ensure_sops/__main__.py b/pre_commit_hook_ensure_sops/__main__.py index 84c72e0..4695ec4 100644 --- a/pre_commit_hook_ensure_sops/__main__.py +++ b/pre_commit_hook_ensure_sops/__main__.py @@ -50,7 +50,8 @@ def check_file(filename, args): if filename.endswith('.yaml'): if args.allow_multiple_documents: loader_func = _load_all - loader_func = yaml.load + else: + loader_func = yaml.load else: loader_func = json.load # sops doesn't have a --verify (https://github.com/mozilla/sops/issues/437)