From 163eea6924aaf6a1f443e86de16372e5d3275cca Mon Sep 17 00:00:00 2001 From: Michael Weiser Date: Mon, 9 Dec 2019 22:53:12 +0100 Subject: [PATCH] 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 Signed-off-by: Michael Weiser Suggested-by: Cole Robinson --- virtManager/object/domain.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py index 758caac80..1f2399b69 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