mache.deploy.machine.get_known_target_machines

mache.deploy.machine.get_known_target_machines(*, machines_path: str | None) set[str][source]

Return the set of machine names provided by the target software.

Target machines are read from a directory on disk (no Python imports).

Parameters:

machines_path – Optional path (absolute or relative to repo root) containing machine config files in ini format (e.g. deploy/machines). If None/empty, no target machines are considered.

Returns:

known – A set of known machine names.