summaryrefslogtreecommitdiff
path: root/virtManager
diff options
context:
space:
mode:
authorMichael Weiser <michael.weiser@gmx.de>2019-12-09 22:53:12 +0100
committerCole Robinson <crobinso@redhat.com>2019-12-17 17:51:05 -0500
commit163eea6924aaf6a1f443e86de16372e5d3275cca (patch)
tree76490877b767df202fab24f58f7e11fc3e248ff3 /virtManager
parent84571456089934b6ee65b08ba7a1d83e3f85e805 (diff)
downloadvirt-manager-163eea6924aaf6a1f443e86de16372e5d3275cca.tar.gz
virtManager: object: domain: Restrict time sync to qemu
Only run the API for qemu and test drivers, they are the only ones that support it. This will save spamming logs with error output. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Michael Weiser <michael.weiser@gmx.de> Suggested-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager')
-rw-r--r--virtManager/object/domain.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py
index 758caac8..1f2399b6 100644
--- a/virtManager/object/domain.py
+++ b/virtManager/object/domain.py
@@ -1149,6 +1149,11 @@ class vmmDomain(vmmLibvirtObject):
Heavily based on
https://github.com/openstack/nova/commit/414df1e56ea9df700756a1732125e06c5d97d792.
"""
+ # Only run the API for qemu and test drivers, they are the only ones
+ # that support it. This will save spamming logs with error output.
+ if not self.conn.is_qemu() and not self.conn.is_test():
+ return
+
# retry an arbitrary number of times to give the agent some time to
# come back online after e.g. resuming the domain
attempt = 1