secrets/sops-import: check for key.json to exist
All checks were successful
checks-impure / test (pull_request) Successful in 4s
checks / test (pull_request) Successful in 20s

This commit is contained in:
Jörg Thalheim 2023-09-03 08:37:38 +02:00
parent 1d496c6363
commit e079627f0f

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,