[virt-tools-list] [virt-install PATCH v2 2/7] osdict: Add OsinfoMedia class

Fabiano Fidêncio fidencio at redhat.com
Fri Mar 22 15:23:36 UTC 2019


The OsinfoMedia class is a wrapper around OsinfoMedia and will help us
to keep the logic of dealing with media related stuff from inside
osdict.py

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

diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index c49c45e4..6486643d 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -611,3 +611,8 @@ class _OsVariant(object):
 
         installscript = _get_install_script(script_list)
         return installscript
+
+
+class OsMedia(object):
+    def __init__(self, osinfo_media):
+        self.osinfo_media = osinfo_media
-- 
2.20.1




More information about the virt-tools-list mailing list