[virt-tools-list] [virt-manager PATCH v2 18/25] osdict: Add media to generate_install_script_cmdline()
Fabiano Fidêncio
fidencio at redhat.com
Tue Feb 26 09:43:49 UTC 2019
In case a valid media is passed, let's generate the install script
comand line using the media specific method.
For now it's a no-op as there's no place where media is passed.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
virtinst/osdict.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index 6fd02b87..307559d2 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -717,10 +717,13 @@ class _OsVariant(object):
script.generate_output(self._os, config, output_dir)
- def generate_install_script_cmdline(self, script, config):
+ def generate_install_script_cmdline(self, script, config, media=None):
if not self._os:
return None
+ if media:
+ return script.generate_command_line_for_media(media, config)
+
return script.generate_command_line(self._os, config)
OSDB = _OSDB()
--
2.20.1
More information about the virt-tools-list
mailing list