-
Notifications
You must be signed in to change notification settings - Fork 95
polling: reset bad hosts on manual poll #7055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 8.6.x
Are you sure you want to change the base?
Conversation
| if continue_if_no_good_hosts: | ||
| # no hosts available for this platform | ||
| # -> reset the bad hosts and try again | ||
| self.task_events_mgr.reset_bad_hosts() | ||
| host = get_host_from_platform( | ||
| platform, bad_hosts=self.bad_hosts | ||
| ) | ||
| else: | ||
| ctx.err = f'No available hosts for {platform["name"]}' | ||
| LOG.debug(ctx) | ||
| callback_255(ctx, itasks) | ||
| continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both branches here continue to the next iteration of the for loop. host is not used in the first branch. Did you mean to remove the else condition on the line below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mildly concerned that if Ronnie is right (I think he is) that the test isn't failing....
Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).?.?.xbranch.