diff --git a/pkgs/clan-cli/clan_cli/machines/facts.py b/pkgs/clan-cli/clan_cli/machines/facts.py deleted file mode 100644 index be9e81782..000000000 --- a/pkgs/clan-cli/clan_cli/machines/facts.py +++ /dev/null @@ -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() diff --git a/pkgs/clan-cli/clan_cli/tests/test_modules.py b/pkgs/clan-cli/clan_cli/tests/test_modules.py index a1261d276..17c1090b1 100644 --- a/pkgs/clan-cli/clan_cli/tests/test_modules.py +++ b/pkgs/clan-cli/clan_cli/tests/test_modules.py @@ -18,7 +18,6 @@ from clan_cli.tests.fixtures_flakes import FlakeForTest if TYPE_CHECKING: from .age_keys import KeyPair -# from clan_cli.vars.var import machine_get_fact from clan_cli.machines.machines import Machine as MachineMachine from clan_cli.tests.helpers import cli