[virt-tools-list] [virt-manager PATCH 2/5] osdict: Add get_osinfo_media() to _OsMedia class

Fabiano Fidêncio fidencio at redhat.com
Fri Jul 12 13:02:20 UTC 2019


Let's add a way to get the OsinfoMedia from the _OsMedia class. It's
going to be needed in order to properly generate the command line for
the unattended installations, when doing an installation from a media.

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

diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index 64d8bdb8..b0442527 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -640,3 +640,6 @@ class _OsMedia(object):
 
     def get_install_script_list(self):
         return list(_OsinfoIter(self._media.get_install_script_list()))
+
+    def get_osinfo_media(self):
+        return self._media
-- 
2.21.0




More information about the virt-tools-list mailing list