drop unused machine_get_fact
This commit is contained in:
@@ -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()
|
|
||||||
@@ -18,7 +18,6 @@ from clan_cli.tests.fixtures_flakes import FlakeForTest
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from .age_keys import KeyPair
|
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.machines.machines import Machine as MachineMachine
|
||||||
from clan_cli.tests.helpers import cli
|
from clan_cli.tests.helpers import cli
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user