[virt-tools-list] [PATCH v2 virt-manager 2/2] virtManager: show the state reason in the VM overview

Giuseppe Scrivano gscrivan at redhat.com
Wed Mar 19 12:03:35 UTC 2014


Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1073766

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 virtManager/details.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/virtManager/details.py b/virtManager/details.py
index 14c77fe..545ba12 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -1343,7 +1343,8 @@ class vmmDetails(vmmGObjectUI):
         if not run:
             self.activate_default_console_page()
 
-        self.widget("overview-status-text").set_text(self.vm.run_status())
+        status = "%s (%s)" % (self.vm.run_status(), self.vm.run_status_reason())
+        self.widget("overview-status-text").set_text(status)
         self.widget("overview-status-icon").set_from_icon_name(
                             self.vm.run_status_icon_name(), Gtk.IconSize.BUTTON)
 
-- 
1.8.5.3




More information about the virt-tools-list mailing list