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:
parent
7313f9ff6a
commit
b671c7cf41
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue