Merge pull request 'secrets/sops-import: check for key.json to exist' (#237) from Mic92-secret-fix into main
All checks were successful
checks-impure / test (push) Successful in 14s
checks / test (push) Successful in 1m7s

This commit is contained in:
clan-bot 2023-09-03 06:39:53 +00:00
commit 148c292ea9

View File

@ -36,7 +36,7 @@ def import_sops(args: argparse.Namespace) -> None:
file=sys.stderr,
)
continue
if (sops_secrets_folder() / k).exists():
if (sops_secrets_folder() / k / "key.json").exists():
print(
f"WARNING: {k} already exists, skipping",
file=sys.stderr,