6505c36ecc
virtman-netstats-fix.diff virtman-finish-button-fix.diff virtman-shutoff-fix.diff virtman-set-has-window-fix.diff virtman-grep-fix.diff virtman-no-cd-present-fix.diff virtman-resize-menu-fix.diff virtman-vcpu-count-fix.diff virtman-storage-pool-fix.diff virtman-domain-name-fix.diff virtman-unapplied-changes-fix.diff virtman-details-fix.diff virtman-delete-fix.diff virtman-collidelist-fix.diff virtman-char-device-mode-fix.diff virtinst-hv-version-fix.diff virtinst-initrd-inject-fix.diff virtinst-initrd-inject2-fix.diff virtinst-no-volume-fix.diff virtinst-prompts-fix.diff virtinst-cpu-model-name-fix.diff virtinst-xml-clear-fix.diff virtinst-remote-storage-fix.diff virtinst-error-message-fix.diff virtinst-typo-fix.diff virtinst-cdrom.diff virtinst-storage-ocfs2.diff OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=63
41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
|
|
Subject: virt-manager: Show if the shut off vm has a saved image
|
|
From: Miklos Vajna vmiklos@frugalware.org Sat Jul 30 22:15:44 2011 +0200
|
|
Date: Mon Aug 1 16:16:40 2011 -0400:
|
|
Git: 927daf1e1354c282373f468e3ae50e1ca1c1d246
|
|
|
|
Hi,
|
|
|
|
So far in virt-manager one had to click on a shut off vm in the
|
|
"Shutoff" state to see if it has a saved image: once the item is
|
|
selected then the "play" icon will be "Run" or "Restore". This means
|
|
that in case one has a lot of VMs, it's hard to get an overview of what
|
|
VM has a saved image and what not.
|
|
|
|
The attached patch changes the "Shutoff" status message to "Saved" in
|
|
case the vm has a saved image.
|
|
|
|
Thanks.
|
|
|
|
>From 14445dc510fcc55c267649295246984972691885 Mon Sep 17 00:00:00 2001
|
|
From: Miklos Vajna <vmiklos@frugalware.org>
|
|
Date: Sat, 30 Jul 2011 22:02:48 +0200
|
|
Subject: [PATCH] domain: Show if the shut off vm has a saved image
|
|
|
|
Index: virt-manager-0.9.0/src/virtManager/domain.py
|
|
===================================================================
|
|
--- virt-manager-0.9.0.orig/src/virtManager/domain.py
|
|
+++ virt-manager-0.9.0/src/virtManager/domain.py
|
|
@@ -1334,7 +1334,10 @@ class vmmDomain(vmmLibvirtObject):
|
|
elif self.status() == libvirt.VIR_DOMAIN_SHUTDOWN:
|
|
return _("Shutting Down")
|
|
elif self.status() == libvirt.VIR_DOMAIN_SHUTOFF:
|
|
- return _("Shutoff")
|
|
+ if self.hasSavedImage():
|
|
+ return _("Saved")
|
|
+ else:
|
|
+ return _("Shutoff")
|
|
elif self.status() == libvirt.VIR_DOMAIN_CRASHED:
|
|
return _("Crashed")
|
|
|