connection: Make sure a DEFINED event forces a config-change signal

Even if XML didn't change. This is what we do in the non-event case.
Makes it more clear if details->apply triggers a define, but our
change didn't stick for any reason.
This commit is contained in:
Cole Robinson 2014-03-22 18:14:18 -04:00
parent 1d79667b94
commit 565ef4f3ef
1 changed files with 2 additions and 2 deletions

View File

@ -852,7 +852,7 @@ class vmmConnection(vmmGObject):
self.idle_add(obj.force_update_status, True)
if event == libvirt.VIR_DOMAIN_EVENT_DEFINED:
self.idle_add(obj.refresh_xml)
self.idle_add(obj.refresh_xml, True)
else:
self.schedule_priority_tick(pollvm=True, force=True)
@ -866,7 +866,7 @@ class vmmConnection(vmmGObject):
self.idle_add(obj.force_update_status, True)
if event == getattr(libvirt, "VIR_NETWORK_EVENT_DEFINED", 0):
self.idle_add(obj.refresh_xml)
self.idle_add(obj.refresh_xml, True)
else:
self.schedule_priority_tick(pollnet=True, force=True)