cli: Add "install" parameter to os-variant

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@redhat.com>
This commit is contained in:
Fabiano Fidêncio 2019-02-08 16:23:57 +01:00 committed by Cole Robinson
parent 08d3a5786c
commit cbe84879db
1 changed files with 2 additions and 0 deletions

View File

@ -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):