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
handle run_once with omit keyword on linear strategy #80382
Conversation
Signed-off-by: tu1h <lihai.tu@daocloud.io>
I can confirm that this fixes the community.sops integration tests (ref #80051 (comment)). |
/rebuild_failed |
I don't think It took me a few minutes looking at the initial patch to realize the key part was the |
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.
free
should also handle omit
properly during templating.
this is why we should always do |
@bcoca only at this point we don't have the information to template the whole task. Loops vars are undefined, so a module arg using a loop var would cause a traceback if we call |
Currently In the end just accessing the field should 'post validate it' and any other FAs it depends on (using the priority value), but that requires some redesign of post validation. But before going through that .. we might just want to add an optional parameter to |
related #80394, though I'm tempted to just accept this as is while we work on the permanent solution in that PR |
Merging this soon (and backporting it to stable-2.15) would improve the situation for community.sops, where CI currently is red :) A permanent solution will likely take longer (and might not be backportable, depending on how it looks). |
This should not have been patched piecemeal for linear in the first place, imo. If we want to just patch |
On the previous behavior, a template string of |
My objection is with the setattr specifically, because it breaks FA inheritance and was inconsistently applied. Either improving the consistency (like s-hertel@59230c0 - I could open that as a PR if time is an issue here), or moving the templating to occur after the getter would be preferable to me (there are several places though, so that gets a little messy). Most places where we template FA values piecemeal do not modify the FA, so I think reverting might be the best thing to do here rather than play whack-a-mole with inheritance issues. |
SUMMARY
According to #80051 (comment). And after my verification,
run_once
template expression withomit
keyword will cause failure indeed. Now fix it.ISSUE TYPE
COMPONENT NAME
linear strategy plugin
ADDITIONAL INFORMATION