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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user