mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
domain: Fix rename now that we cache name/id
This commit is contained in:
parent
586f7b3274
commit
96085b13a8
@ -231,6 +231,8 @@ class vmmDomainBase(vmmLibvirtObject):
|
|||||||
def _invalidate_xml(self):
|
def _invalidate_xml(self):
|
||||||
vmmLibvirtObject._invalidate_xml(self)
|
vmmLibvirtObject._invalidate_xml(self)
|
||||||
self._guest_to_define = None
|
self._guest_to_define = None
|
||||||
|
self._name = None
|
||||||
|
self._id = None
|
||||||
|
|
||||||
def _get_guest_to_define(self):
|
def _get_guest_to_define(self):
|
||||||
if not self._guest_to_define:
|
if not self._guest_to_define:
|
||||||
@ -1476,10 +1478,8 @@ class vmmDomain(vmmDomainBase):
|
|||||||
if self.connection.get_state() != self.connection.STATE_ACTIVE:
|
if self.connection.get_state() != self.connection.STATE_ACTIVE:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Invalidate cached xml
|
# Invalidate cached values
|
||||||
self._invalidate_xml()
|
self._invalidate_xml()
|
||||||
self._id = None
|
|
||||||
self._name = None
|
|
||||||
|
|
||||||
info = self.get_info()
|
info = self.get_info()
|
||||||
expected = self.config.get_stats_history_length()
|
expected = self.config.get_stats_history_length()
|
||||||
|
Loading…
Reference in New Issue
Block a user