[virt-tools-list] [PATCH virt-install 3/4] cli: Add "install" parameter to os-variant

Fabiano Fidêncio fidencio at redhat.com
Fri Feb 8 15:23:57 UTC 2019


The new "install" parameter receives "location|cdrom" and will be used,
at least for now, to automatically get the URL location of an OS from
osinfo-db.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 virtinst/cli.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/virtinst/cli.py b/virtinst/cli.py
index fad0e6a7..06c6d33e 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -1492,6 +1492,7 @@ class OSVariantData(object):
         self.full_id = None
         self.is_none = False
         self.is_auto = False
+        self.install = None
 
     def _set_name(self, val):
         if val == "auto":
@@ -1520,6 +1521,7 @@ class ParserOSVariant(VirtCLIParser):
         VirtCLIParser.__init_class__(**kwargs)
         cls.add_arg("name", "name")
         cls.add_arg("full_id", "full_id")
+        cls.add_arg("install", "install")
 
 
 def parse_os_variant(optstr):
-- 
2.20.1




More information about the virt-tools-list mailing list