From 285f1187e042945962260c4fa2a9599d9f771ecb Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Tue, 26 Dec 2017 15:29:50 +0100 Subject: [PATCH] ovirt: Fix check for upgrade when no updates (#33940) --- lib/ansible/modules/cloud/ovirt/ovirt_hosts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py b/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py index 44ec8ee2ec3..8de22478cf1 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py @@ -476,8 +476,11 @@ def main(): event for event in events_service.list( from_=int(last_event.id), - search='type=885 and host.name=%s' % host.name, - ) + search='type=885', + # Uncomment when 4.1 is EOL, and remove the cond: + # if host.name in event.description + # search='type=885 and host.name=%s' % host.name, + ) if host.name in event.description ]) > 0 ), fail_condition=lambda host: len([