cli vars upload: fix sops

This commit is contained in:
lassulus
2024-11-28 17:51:48 +01:00
parent a97d719a52
commit d4fb4efd1f

View File

@@ -26,7 +26,8 @@ def upload_secret_vars(machine: Machine) -> None:
upload_dir = Path(machine.deployment["password-store"]["secretLocation"]) upload_dir = Path(machine.deployment["password-store"]["secretLocation"])
upload(machine.target_host, secret_dir, upload_dir) upload(machine.target_host, secret_dir, upload_dir)
elif secret_store.store_name == "sops": elif secret_store.store_name == "sops":
pass upload_dir = Path("/var/lib/sops-nix")
upload(machine.target_host, secret_dir, upload_dir)
else: else:
msg = "upload function used on unsuitable secret_store" msg = "upload function used on unsuitable secret_store"
raise ClanError(msg) raise ClanError(msg)