clan-cli nix_build_machine: cast flake_url to str

This commit is contained in:
lassulus
2023-09-13 23:18:54 +02:00
committed by Mic92
parent 23c979f8db
commit 0e3f8bb3f9

View File

@@ -10,7 +10,7 @@ def nix_build_machine(
machine: str, attr: list[str], flake_url: Path | None = None machine: str, attr: list[str], flake_url: Path | None = None
) -> list[str]: ) -> list[str]:
if flake_url is None: if flake_url is None:
flake_url = get_clan_flake_toplevel() flake_url = str(get_clan_flake_toplevel())
payload = json.dumps( payload = json.dumps(
dict( dict(
clan_flake=flake_url, clan_flake=flake_url,