[gnome-boxes] vm-creator: Rename post_install_setup to set_post_install_config



commit 0f4d1543c69fc9bb39e7eb618ee27d466c187b20
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Jun 29 03:33:27 2012 +0300

    vm-creator: Rename post_install_setup to set_post_install_config
    
    Since we also do some other post-installation setup, its better to make
    it clear that this function only sets post-install configuration on the
    new domain and nothing else.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678894

 src/vm-creator.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index be20a6f..c217dee 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -72,7 +72,7 @@ private class Boxes.VMCreator {
     public void launch_vm (LibvirtMachine machine) throws GLib.Error {
         machine.domain.start (0);
 
-        post_install_setup (machine.domain);
+        set_post_install_config (machine.domain);
 
         if (!(install_media is UnattendedInstaller) || !(install_media as UnattendedInstaller).express_install) {
             ulong signal_id = 0;
@@ -130,14 +130,14 @@ private class Boxes.VMCreator {
         }
     }
 
-    private void post_install_setup (Domain domain) {
-        debug ("Performing post-installation setup on '%s'", domain.get_name ());
+    private void set_post_install_config (Domain domain) {
+        debug ("Setting post-installation configuration on '%s'", domain.get_name ());
         try {
             var config = domain.get_config (0);
             VMConfigurator.post_install_setup (config);
             domain.set_config (config);
         } catch (GLib.Error error) {
-            warning ("Post-install setup failed for domain '%s': %s", domain.get_uuid (), error.message);
+            warning ("Failed to set post-install configuration on '%s' failed: %s", domain.get_uuid (), error.message);
         }
     }
 



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