fixing logic issue

This commit is contained in:
Mike Garuccio
2023-03-03 01:13:47 -05:00
parent 2b5a7c16b2
commit cb32ffd65a

View File

@@ -50,7 +50,8 @@ def check_file(filename, args):
if filename.endswith('.yaml'): if filename.endswith('.yaml'):
if args.allow_multiple_documents: if args.allow_multiple_documents:
loader_func = _load_all loader_func = _load_all
loader_func = yaml.load else:
loader_func = yaml.load
else: else:
loader_func = json.load loader_func = json.load
# sops doesn't have a --verify (https://github.com/mozilla/sops/issues/437) # sops doesn't have a --verify (https://github.com/mozilla/sops/issues/437)