diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-03-18 15:13:57 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-03-20 08:48:47 +0100 |
commit | f8e1a68889902bf47e52ef95ad794f12e23125e7 (patch) | |
tree | 620421059aafff529b0f234cd0f7996cfa119b05 | |
parent | ef2206a8f5267c55e227b044aa8f72a568e63334 (diff) | |
download | virt-manager-f8e1a68889902bf47e52ef95ad794f12e23125e7.tar.gz |
virtManager: show the state reason in the VM overview
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1073766
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | virtManager/details.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/virtManager/details.py b/virtManager/details.py index 14c77fe7..8a9b9935 100644 --- a/virtManager/details.py +++ b/virtManager/details.py @@ -1343,7 +1343,12 @@ class vmmDetails(vmmGObjectUI): if not run: self.activate_default_console_page() - self.widget("overview-status-text").set_text(self.vm.run_status()) + reason = self.vm.run_status_reason() + if reason: + status = "%s (%s)" % (self.vm.run_status(), reason) + else: + status = self.vm.run_status() + 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) |