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 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")