[virt-manager PATCH] virtManager: domain: override rename_domain in vmmDomainVirtinst

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

 



If user renames guest in VM details page before installation starts
there is no need to rename NVRAM file as well.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1667308

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---

Pushed

 virtManager/domain.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/virtManager/domain.py b/virtManager/domain.py
index 3f46624c..9d828a9c 100644
--- a/virtManager/domain.py
+++ b/virtManager/domain.py
@@ -1637,3 +1637,6 @@ class vmmDomainVirtinst(vmmDomain):
 
     def _redefine_xmlobj(self, xmlobj, origxml=None):
         vmmDomain._redefine_xmlobj(self, xmlobj, origxml=self._orig_xml)
+
+    def rename_domain(self, new_name):
+        self.define_name(new_name)
-- 
2.20.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux