unattended_data will be used when we add support for unattended
installations. It'll be passed down to the helper that's responsible for
actually generating the script and the kernel command line to be used
with it during prepare(); nevertheless, the addition does nothing right
now.

Together with the addition of the unattended_data, a setter has been
added.

Signed-off-by: Fabiano Fidêncio <[email protected]>
---
 virtinst/installertreemedia.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/virtinst/installertreemedia.py b/virtinst/installertreemedia.py
index 3162e717..642946d9 100644
--- a/virtinst/installertreemedia.py
+++ b/virtinst/installertreemedia.py
@@ -79,6 +79,8 @@ class InstallerTreeMedia(object):
         self._tmpfiles = []
         self._tmpvols = []
 
+        self._unattended_data = None
+
         self._media_type = MEDIA_ISO
         if (not self.conn.is_remote() and
             os.path.exists(self.location) and
@@ -166,7 +168,13 @@ class InstallerTreeMedia(object):
     # Public API #
     ##############
 
+    def set_unattended_data(self, unattended_data):
+        self._unattended_data = unattended_data
+
     def prepare(self, guest, meter):
+        if self._unattended_data:
+            pass
+
         fetcher = self._get_fetcher(guest, meter)
         return self._prepare_kernel_url(guest, fetcher)
 
-- 
2.20.1

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to