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

Pavel Hrdina phrdina at redhat.com
Tue Mar 5 14:54:37 UTC 2019


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 at redhat.com>
---

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




More information about the virt-tools-list mailing list