Blame SOURCES/virt-manager-virtManager-domain-override-rename_domain-in-vmmDomainVirtinst.patch

3d61c0
From a1df4746ffaf87e13e72f12650f945c76aaa6127 Mon Sep 17 00:00:00 2001
3d61c0
Message-Id: <a1df4746ffaf87e13e72f12650f945c76aaa6127@dist-git>
3d61c0
From: Pavel Hrdina <phrdina@redhat.com>
3d61c0
Date: Tue, 5 Mar 2019 15:49:23 +0100
3d61c0
Subject: [PATCH] virtManager: domain: override rename_domain in
3d61c0
 vmmDomainVirtinst
3d61c0
3d61c0
If user renames guest in VM details page before installation starts
3d61c0
there is no need to rename NVRAM file as well.
3d61c0
3d61c0
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1667308
3d61c0
3d61c0
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
3d61c0
(cherry picked from commit b206931eb9644e33b31c3141ba3403993898a090)
3d61c0
Reviewed-by: Cole Robinson <crobinso@redhat.com>
3d61c0
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
3d61c0
---
3d61c0
 virtManager/domain.py | 3 +++
3d61c0
 1 file changed, 3 insertions(+)
3d61c0
3d61c0
diff --git a/virtManager/domain.py b/virtManager/domain.py
3d61c0
index 3ec99a49..a60e054f 100644
3d61c0
--- a/virtManager/domain.py
3d61c0
+++ b/virtManager/domain.py
3d61c0
@@ -2124,3 +2124,6 @@ class vmmDomainVirtinst(vmmDomain):
3d61c0
 
3d61c0
     def _redefine_xmlobj(self, xmlobj, origxml=None):
3d61c0
         vmmDomain._redefine_xmlobj(self, xmlobj, origxml=self._orig_xml)
3d61c0
+
3d61c0
+    def rename_domain(self, new_name):
3d61c0
+        self.define_name(new_name)
3d61c0
-- 
3d61c0
2.20.1
3d61c0