-
Notifications
You must be signed in to change notification settings - Fork 153
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
Error message is missing target
and port_forward
parameters
#255
Comments
saito-hideki
added
feature
This issue/PR relates to a feature request.
verified
This issue has been verified/reproduced by maintainer
waiting_on_contributor
Needs help. Feel free to engage to get things unblocked
labels
Aug 27, 2021
I think your opinion is reasonable. It would be better including the targets in the error message. Thank you for reporting this! :) |
saito-hideki
added
has_pr
bug
This issue/PR relates to a bug.
and removed
waiting_on_contributor
Needs help. Feel free to engage to get things unblocked
feature
This issue/PR relates to a feature request.
labels
Nov 29, 2021
ansible-zuul bot
added a commit
that referenced
this issue
Nov 29, 2021
Refine the handling of exclusive options SUMMARY Refine the handling of exclusive options using mutually_exclusive: Fixes #255 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ansible.posix.firewalld ADDITIONAL INFORMATION None Reviewed-by: Adam Miller <[email protected]> Reviewed-by: None <None>
1 task
1 task
1 task
1 task
1 task
1 task
1 task
ghost
mentioned this issue
May 23, 2022
1 task
1 task
1 task
1 task
This was referenced May 23, 2022
Closed
1 task
1 task
This was referenced May 28, 2022
Closed
Closed
This was referenced Jun 18, 2022
This was referenced Jul 31, 2022
Closed
This was referenced Sep 14, 2022
1 task
1 task
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
The error message for changing more than one field that can only be exclusively changed at once in a firewalld resource doesn't include the
target
andport_forward
parameters.ISSUE TYPE
COMPONENT NAME
ansible.posix.firewalld
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04 LTS on WSL 2 on Windows 10 x64.
STEPS TO REPRODUCE
Apply an ansible playbook with a firewalld resource changing more than one allowed parameter at once.
(empty)
EXPECTED RESULTS
The warning message should also include the
target
field.ACTUAL RESULTS
DISCUSSION
ansible.posix/plugins/modules/firewalld.py
Lines 815 to 839 in 7f16f56
Currently a (admittedly easily readable and understandable) if structure is used to determine the number of parameters of a set of parameters that can only be exclusively set per firewalld resource.
The error message is separately constructed, hence it can easily go out of sync with that counting code above.
An alternative could be defining a set of these only exclusively settable fields and count these and generate the error message by using that set as a single source of truth.
The text was updated successfully, but these errors were encountered: