secrets/sops-import: check correct secret for conflicts

This commit is contained in:
Jörg Thalheim
2023-09-03 08:37:38 +02:00
parent 148c292ea9
commit 6c7c9b9540

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