add apply "machine" as an alias to clan machines create

I was a bit confused that I was able to list templates but not
apply them. Turns out that "apply" only supported disk templates
This commit is contained in:
Jörg Thalheim
2025-08-27 14:30:03 +02:00
committed by Mic92
parent 5962149e55
commit 758eacd27e
5 changed files with 156 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import argparse
from .apply_disk import register_apply_disk_template_parser
from .apply_machine import register_apply_machine_template_parser
def register_apply_parser(parser: argparse.ArgumentParser) -> None:
@@ -11,5 +12,7 @@ def register_apply_parser(parser: argparse.ArgumentParser) -> None:
required=True,
)
disk_parser = subparser.add_parser("disk", help="Apply a disk template")
machine_parser = subparser.add_parser("machine", help="Apply a machine template")
register_apply_disk_template_parser(disk_parser)
register_apply_machine_template_parser(machine_parser)