[virt-tools-list] [virt-install PATCH v2 11/14] installer: Add set_unattended_data() method

Fabiano Fidêncio fidencio at redhat.com
Fri Feb 22 08:40:18 UTC 2019


The new method will be used to pass down the unattended_data to the
InstallerTreeMedia class.

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

diff --git a/virtinst/installer.py b/virtinst/installer.py
index fe840abf..67cdfb29 100644
--- a/virtinst/installer.py
+++ b/virtinst/installer.py
@@ -276,6 +276,10 @@ class Installer(object):
         logging.debug("installer.detect_distro returned=%s", ret)
         return ret
 
+    def set_unattended_data(self, unattended_data):
+        if self._treemedia:
+            self._treemedia.set_unattended_data(unattended_data)
+
 
     ##########################
     # guest install handling #
-- 
2.20.1




More information about the virt-tools-list mailing list