From: Ondrej Lichtner <olichtne(a)redhat.com>
When in virtual mode the wizard will now also query for security
parameters and they'll be added to the created XML file. However since
in this mode we don't actually create a connection to the machine, these
parameters will not be "tested" for validity...
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/Wizard.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lnst/Controller/Wizard.py b/lnst/Controller/Wizard.py
index b7ec246..59c3732 100644
--- a/lnst/Controller/Wizard.py
+++ b/lnst/Controller/Wizard.py
@@ -190,11 +190,13 @@ class Wizard:
libvirt_domain, hostname = self._query_libvirt_domain(conn)
if hostname is None or libvirt_domain is None:
return
+ sec_params = self._query_sec_params(hostname)
filename = self._query_filename(libvirt_domain)
self._create_xml(hostname=hostname, pool_dir=pool_dir,
filename=filename, mode="virtual",
- libvirt_domain=libvirt_domain)
+ libvirt_domain=libvirt_domain,
+ sec_params=sec_params)
if self._query_continuation():
continue
--
2.7.2