Reports also host name in the title of machine properties window. Helps to
differentiate between machines with similar names on different hosts.

Signed-off-by: Pavel Fedin <[email protected]>
---
 virtManager/console.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/console.py b/virtManager/console.py
index b07ae72..2f14bcc 100644
--- a/virtManager/console.py
+++ b/virtManager/console.py
@@ -215,7 +215,7 @@ class vmmConsolePages(vmmGObjectUI):
     #################
 
     def _change_title(self, ignore1=None):
-        title = self.vm.get_name_or_title() + " " + _("Virtual Machine")
+        title = self.vm.get_name_or_title() + " " + _("Virtual Machine") + " @ 
" + self.vm.conn.libvirt_gethostname()
 
         if self._pointer_is_grabbed and self._viewer:
             keystr = self._viewer.console_get_grab_keys()
-- 
2.1.4

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to