mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Make sure we force a tick update if the domain XML config changes.
This commit is contained in:
parent
b87d51cda5
commit
1bd9c50942
@ -22,6 +22,7 @@ import gobject
|
|||||||
import libvirt
|
import libvirt
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
import time
|
||||||
|
|
||||||
from virtManager import util
|
from virtManager import util
|
||||||
import virtinst.util as vutil
|
import virtinst.util as vutil
|
||||||
@ -97,6 +98,8 @@ class vmmDomain(gobject.GObject):
|
|||||||
self._valid_xml = True
|
self._valid_xml = True
|
||||||
|
|
||||||
if origxml != self._xml:
|
if origxml != self._xml:
|
||||||
|
# 'tick' to make sure we have the latest time
|
||||||
|
self.tick(time.time())
|
||||||
self.emit("config-changed")
|
self.emit("config-changed")
|
||||||
|
|
||||||
def invalidate_xml(self):
|
def invalidate_xml(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user