drop unused machine_get_fact

This commit is contained in:
Jörg Thalheim
2025-04-22 16:54:42 +02:00
parent 7392570859
commit 847e3ac4ab
2 changed files with 0 additions and 12 deletions

View File

@@ -1,11 +0,0 @@
from pathlib import Path
from clan_cli.dirs import specific_machine_dir
def machine_has_fact(flake_dir: Path, machine: str, fact: str) -> bool:
return (specific_machine_dir(flake_dir, machine) / "facts" / fact).exists()
def machine_get_fact(flake_dir: Path, machine: str, fact: str) -> str:
return (specific_machine_dir(flake_dir, machine) / "facts" / fact).read_text()