[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH 2/3] virt-manager: show the VM title in the manager window



If a title is defined for a VM, append it to the name of the VM.

Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
---
 virtManager/manager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virtManager/manager.py b/virtManager/manager.py
index 147c896..c481c7b 100644
--- a/virtManager/manager.py
+++ b/virtManager/manager.py
@@ -747,7 +747,7 @@ class vmmManager(vmmGObjectUI):
             color = self._build_conn_color(conn)
             os_icon = None
         else:
-            name = vm.get_name()
+            name = vm.get_descriptive_name()
             status = vm.run_status()
             markup = self._build_vm_markup(name, status)
             status_icon = vm.run_status_icon_name()
@@ -862,7 +862,7 @@ class vmmManager(vmmGObjectUI):
             return
 
         try:
-            name = vm.get_name()
+            name = vm.get_descriptive_name()
             status = vm.run_status()
 
             row[ROW_SORT_KEY] = name
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]