cloner: Clear domain <title> as well

Otherwise in virt-manager the two VMs will be identical

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

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-29 15:31:21 -05:00
parent 3859725739
commit 1e1cd4c564
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<uuid>aaa3ae22-fed2-bfbd-ac02-3bea3bcfad82</uuid>
<memory>262144</memory>
<currentMemory>262144</currentMemory>
<title>footitle</title>
<vcpu>1</vcpu>
<os>
<type arch='i686' machine='pc'>hvm</type>

View File

@ -410,6 +410,8 @@ class Cloner(object):
self._guest.name = self._clone_name
self._guest.uuid = self._clone_uuid
self._guest.title = None
self._clone_macs.reverse()
for dev in self._guest.devices.graphics:
if dev.port and dev.port != -1: