-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Pull the correct collection plugin for the product #15658
Conversation
126d887
to
4bf0ba8
Compare
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.
May I suggest a little refactoring?
the related PR has been merged
The schema change failure here is a good thing. Prior to this PR we were in a state where we surfaced both the supported and unsupported version of the inventory plugins.
|
@@ -1248,3 +1249,7 @@ def _new_func(*args, **kwargs): | |||
|
|||
def unified_job_class_to_event_table_name(job_class): | |||
return f'main_{job_class().event_class.__name__.lower()}' | |||
|
|||
|
|||
def load_all_entry_points_for(entry_point_subsections: list[str], /) -> dict[str, EntryPoint]: |
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.
Can you explain what the /
is doing here? Maybe it's a new python thing I'm unaware of, but maybe it's unintended.
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.
my understanding is that it's using this syntax https://docs.python.org/3.8/whatsnew/3.8.html#positional-only-parameters. it was suggested by @webknjaz here #15658 (comment). I think it's to enforce standard behavior.
@jessicamack let's get this merged 👍 |
Quality Gate passedIssues Measures |
SUMMARY
There exist several cases of inventory plugins with the same name but different implementations. Historically, AWX/Controller pivoted on attributes on the inventory source to figure out which ansible inventory to call. Now, instead of a single implementation we've split them into two implementations completely. This PR is to implement the change to pick which one we want and when.
Requires: ansible/awx-plugins#61
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION