ovirt: Fix check for upgrade when no updates (#33940)

pull/33224/head
Ondra Machacek 7 years ago committed by ansibot
parent 1c157a8cf1
commit 285f1187e0

@ -476,8 +476,11 @@ def main():
event event
for event in events_service.list( for event in events_service.list(
from_=int(last_event.id), 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 ]) > 0
), ),
fail_condition=lambda host: len([ fail_condition=lambda host: len([

Loading…
Cancel
Save