Skip to content
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

Remove redundant aliases from NIOS modules #1223

Merged
merged 8 commits into from
Nov 4, 2020
Merged

Remove redundant aliases from NIOS modules #1223

merged 8 commits into from
Nov 4, 2020

Conversation

zjpeterson
Copy link
Contributor

SUMMARY

Fixes #852.
Redundant aliases were present in the argument specs of these modules, causing unnecessary [WARNING] messages on execution.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

nios_fixed_address
nios_host_record
nios_zone

ADDITIONAL INFORMATION

See #852

@ansibullbot ansibullbot added affects_2.10 bug This issue/PR relates to a bug community_review module module needs_triage net_tools new_contributor Help guide this first time contributor plugins plugin (any type) labels Nov 3, 2020
@ansibullbot
Copy link
Collaborator

The test ansible-test sanity --test validate-modules [explain] failed with 2 errors:

tests/sanity/ignore-2.10.txt:761:1: A100: Ignoring 'parameter-alias-self' on 'plugins/modules/net_tools/nios/nios_fixed_address.py' is unnecessary
tests/sanity/ignore-2.10.txt:839:1: A100: Ignoring 'parameter-alias-self' on 'plugins/modules/net_tools/nios/nios_zone.py' is unnecessary

The test ansible-test sanity --test validate-modules [explain] failed with 2 errors:

tests/sanity/ignore-2.11.txt:761:1: A100: Ignoring 'parameter-alias-self' on 'plugins/modules/net_tools/nios/nios_fixed_address.py' is unnecessary
tests/sanity/ignore-2.11.txt:839:1: A100: Ignoring 'parameter-alias-self' on 'plugins/modules/net_tools/nios/nios_zone.py' is unnecessary

click here for bot help

@ansibullbot ansibullbot added the ci_verified Push fixes to PR branch to re-run CI label Nov 3, 2020
@felixfontein
Copy link
Collaborator

Thanks for fixing some of the sanity issues!

You need to remove the corresponding lines in the ignore-*.txt files (see the bot post above) to make the tests pass.

Since this is a user-observable change, it should also have a changelog fragment.

@ansibullbot ansibullbot added tests tests and removed ci_verified Push fixes to PR branch to re-run CI labels Nov 3, 2020
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shipit

@felixfontein felixfontein merged commit b661c94 into ansible-collections:main Nov 4, 2020
patchback bot pushed a commit that referenced this pull request Nov 4, 2020
* remove redundant alias

* remove redundant aliases

* remove redundant aliases

* remove parameter-alias-self for nios_*

* add fragment

* Update changelogs/fragments/1223-nios-remove-redundant-aliases.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/net_tools/nios/nios_host_record.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* remove parameter-alias-self for nios_host_record

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b661c94)
@felixfontein
Copy link
Collaborator

@zjpeterson thanks a lot for fixing this! :)

felixfontein pushed a commit that referenced this pull request Nov 4, 2020
* remove redundant alias

* remove redundant aliases

* remove redundant aliases

* remove parameter-alias-self for nios_*

* add fragment

* Update changelogs/fragments/1223-nios-remove-redundant-aliases.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/net_tools/nios/nios_host_record.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* remove parameter-alias-self for nios_host_record

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b661c94)

Co-authored-by: Zach Peterson <35381531+zjpeterson@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug community_review module module net_tools new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[nios_zone] Warnings when using zone_format parameter
3 participants