libvirtobject: Always define even if XML isn't different

This should be a rare occurence, and it ensures that the UI reflects
the latest XML

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

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-29 10:08:15 -05:00
parent 7313f9ff6a
commit b671c7cf41
1 changed files with 1 additions and 7 deletions

View File

@ -389,17 +389,11 @@ class vmmLibvirtObject(vmmGObject):
def _redefine_xml_internal(self, origxml, newxml):
self.log_redefine_xml_diff(self, origxml, newxml)
if origxml != newxml:
self._define(newxml)
self._define(newxml)
if self._using_events():
return
# Make sure we have latest XML.
self.ensure_latest_xml(nosignal=True)
# We force a signal even if XML didn't change, so the details
# window is correctly refreshed.
self.idle_emit("state-changed")
def _redefine_xmlobj(self, xmlobj):