[gnome-boxes] vm-configurator: Pass DomainCapabilities to create_domain_config()



commit 1dbf1aeaaf7d242f8a5e08d65b213c851188f742
Author: Fabiano FidĂȘncio <fidencio redhat com>
Date:   Mon Aug 26 20:15:45 2019 +0300

    vm-configurator: Pass DomainCapabilities to create_domain_config()
    
    create_domain_config() must know about the DomainCapabilities in order
    to be able to decide which firmware to use (UEFI or BIOS).
    
    https://gitlab.gnome.org/GNOME/gnome-boxes/issues/199
    
    Signed-off-by: Fabiano FidĂȘncio <fidencio redhat com>

 src/vm-configurator.vala | 2 +-
 src/vm-creator.vala      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index f3ca1888..a73180c6 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -38,7 +38,7 @@
     private const string LIBOSINFO_XML = "<libosinfo>%s</libosinfo>";
     private const string LIBOSINFO_OS_ID_XML = "<os id=\"%s\"/>";
 
-    public static Domain create_domain_config (InstallerMedia install_media, string target_path, 
Capabilities caps)
+    public static Domain create_domain_config (InstallerMedia install_media, string target_path, 
Capabilities caps, DomainCapabilities domain_caps)
                                         throws VMConfiguratorError {
         var domain = new Domain ();
 
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 8851bd4b..9f858604 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -209,7 +209,7 @@ protected void set_post_install_config (LibvirtMachine machine) {
                                                                     StorageVol   volume,
                                                                     Cancellable? cancellable) throws 
GLib.Error {
         var caps = yield connection.get_capabilities_async (cancellable);
-        var config = VMConfigurator.create_domain_config (install_media, volume.get_path (), caps);
+        var config = VMConfigurator.create_domain_config (install_media, volume.get_path (), caps, null);
         config.name = name;
         config.title = title;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]