-
Notifications
You must be signed in to change notification settings - Fork 321
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
inventory/aws2_ec2: avoid extra Display import #226
inventory/aws2_ec2: avoid extra Display import #226
Conversation
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.
The superclass does appear to include display in self, which is imported identically to the way it had been in this module.
https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/inventory/__init__.py#L39
/ https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/inventory/__init__.py#L161
Change looks sane and tests pass
@jillr / @felixfontein Do you feel this change warrants a changelog entry? |
@tremble good question. I tend to say "all code changes need one", to stop having to think about such cases ;-) |
The `BaseInventoryPlugin` class already expose an instance of `ansible.utils.display.Display`. We don't to recreate it.
559caf2
to
d53dd6a
Compare
Co-authored-by: Mark Chappell <mchappel@redhat.com>
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.
LGTM
Co-authored-by: Felix Fontein <felix@fontein.de>
…_protocol_versions (ansible-collections#226) Co-authored-by: Andreas Jonsson <andreas.jonsson@ensighten.com>
…_protocol_versions (ansible-collections#226) Co-authored-by: Andreas Jonsson <andreas.jonsson@ensighten.com>
…_protocol_versions (ansible-collections#226) Co-authored-by: Andreas Jonsson <andreas.jonsson@ensighten.com>
The
BaseInventoryPlugin
class already expose an instance ofansible.utils.display.Display
. We don't to recreate it.