Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx> --- tests/clitest.py | 1 + virtinst/cli.py | 1 + virtinst/unattended.py | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/clitest.py b/tests/clitest.py index 3668e26b..d3bd6044 100644 --- a/tests/clitest.py +++ b/tests/clitest.py @@ -1150,6 +1150,7 @@ _add_argcomplete_cmd("virt-install --unattended ", "profile=") # will list all _add_argcomplete_cmd("virt-install --unattended p", "profile=") _add_argcomplete_cmd("virt-install --unattended a", "admin-password=") _add_argcomplete_cmd("virt-install --unattended u", "user-password=") +_add_argcomplete_cmd("virt-install --unattended prod", "product-key") _add_argcomplete_cmd("virt-clone --preserve", "--preserve-data") _add_argcomplete_cmd("virt-xml --sound mode", "model") _add_argcomplete_cmd("virt-convert --dest", "--destination") diff --git a/virtinst/cli.py b/virtinst/cli.py index 99b43918..5e90e225 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -1427,6 +1427,7 @@ class ParseUnattended(VirtCLIParser): cls.add_arg("profile", "profile") cls.add_arg("admin_password", "admin-password") cls.add_arg("user_password", "user-password") + cls.add_arg("product_key", "product-key") def parse_unattended(unattended): diff --git a/virtinst/unattended.py b/virtinst/unattended.py index 128a8e46..74043c36 100644 --- a/virtinst/unattended.py +++ b/virtinst/unattended.py @@ -227,6 +227,7 @@ class UnattendedData(): profile = None admin_password = None user_password = None + product_key = None def prepare_install_script(guest, unattended_data, url=None, os_media=None): -- 2.20.1 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list