secrets/sops-import: check for key.json to exist

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, file=sys.stderr,
) )
continue continue
if (sops_secrets_folder() / k).exists(): if (sops_secrets_folder() / k / "key.json").exists():
print( print(
f"WARNING: {k} already exists, skipping", f"WARNING: {k} already exists, skipping",
file=sys.stderr, file=sys.stderr,