- bnc#624250 - L3: virt-manager doesn't update "Autostart" setting

in vm configuration correctly
  virtman-autorestart.diff

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=34
This commit is contained in:
Charles Arnold 2010-08-02 21:45:48 +00:00 committed by Git OBS Bridge
parent 42037f3aa9
commit b1e8ab96f7
3 changed files with 52 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jul 28 16:06:55 MDT 2010 - carnold@novell.com
- bnc#624250 - L3: virt-manager doesn't update "Autostart" setting
in vm configuration correctly
virtman-autorestart.diff
-------------------------------------------------------------------
Fri Jun 25 09:22:04 MDT 2010 - jfehlig@novell.com

View File

@ -48,6 +48,7 @@ Patch57: virtman-help.diff
Patch58: virtman-keycombo.diff
Patch59: virtman-autoconnect.diff
Patch60: virtman-device-flags.diff
Patch61: virtman-autorestart.diff
Patch81: virtinst-cdrom.diff
Patch82: virtinst-storage-ocfs2.diff
ExclusiveArch: %{ix86} x86_64
@ -138,6 +139,7 @@ Authors:
%patch58 -p1
%patch59 -p1
%patch60 -p1
%patch61 -p1
pushd $RPM_BUILD_DIR/%{virtinst_name}
%patch81 -p1
%patch82 -p1

43
virtman-autorestart.diff Normal file
View File

@ -0,0 +1,43 @@
Index: virt-manager-0.8.4/src/virtManager/details.py
===================================================================
--- virt-manager-0.8.4.orig/src/virtManager/details.py
+++ virt-manager-0.8.4/src/virtManager/details.py
@@ -1335,8 +1335,15 @@ class vmmDetails(gobject.GObject):
self.vm.hotplug_both_mem,
(curmem, maxmem))
- # Boot device / Autostart
+ # Boot device
def config_boot_options_apply(self):
+ bootdevs = self.get_config_boot_devs()
+ return self._change_config_helper(self.vm.set_boot_device,
+ (bootdevs,))
+
+ # Autostart - See bnc#624250 - L3: virt-manager doesn't update
+ # "Autostart" setting in vm configuration correctly
+ def update_on_xend_start(self):
auto = self.window.get_widget("config-autostart")
if auto.get_property("sensitive"):
@@ -1345,11 +1352,6 @@ class vmmDetails(gobject.GObject):
except Exception, e:
self.err.show_err((_("Error changing autostart value: %s") %
str(e)), "".join(traceback.format_exc()))
- return False
-
- bootdevs = self.get_config_boot_devs()
- return self._change_config_helper(self.vm.set_boot_device,
- (bootdevs,))
# CDROM
def change_storage_media(self, dev_id_info, newpath, _type=None):
@@ -1505,6 +1507,9 @@ class vmmDetails(gobject.GObject):
else:
self.err.show_info(_("These changes will take effect after "
"the next guest reboot."))
+
+ self.update_on_xend_start()
+
return True
########################