From 96085b13a8b1f76eeabbe3c4958c0b26dcf36b3b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 11 Apr 2011 11:55:20 -0400 Subject: [PATCH] domain: Fix rename now that we cache name/id --- src/virtManager/domain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py index 52e766a5c..d902b687b 100644 --- a/src/virtManager/domain.py +++ b/src/virtManager/domain.py @@ -231,6 +231,8 @@ class vmmDomainBase(vmmLibvirtObject): def _invalidate_xml(self): vmmLibvirtObject._invalidate_xml(self) self._guest_to_define = None + self._name = None + self._id = None def _get_guest_to_define(self): if not self._guest_to_define: @@ -1476,10 +1478,8 @@ class vmmDomain(vmmDomainBase): if self.connection.get_state() != self.connection.STATE_ACTIVE: return - # Invalidate cached xml + # Invalidate cached values self._invalidate_xml() - self._id = None - self._name = None info = self.get_info() expected = self.config.get_stats_history_length()