Updated to main

This commit is contained in:
Qubasa
2023-10-03 13:12:44 +02:00
parent 56325fc9aa
commit 0b47a1f9e1
12 changed files with 258 additions and 144 deletions

View File

@@ -1,12 +1,16 @@
import argparse
import logging
import os
from .folders import machines_folder
from .types import validate_hostname
log = logging.getLogger(__name__)
def list_machines() -> list[str]:
path = machines_folder()
log.debug(f"Listing machines in {path}")
if not path.exists():
return []
objs: list[str] = []