-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
consul: pythonisms + a couple of required_if clauses #5367
consul: pythonisms + a couple of required_if clauses #5367
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.
Thanks! Please add a changelog fragment as well.
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #5380 🤖 @patchback |
@russoz thanks! |
* consul: pythonisms + a couple of required_if clauses * adjust condition of if * adjust condition of if (again) * Update plugins/modules/clustering/consul/consul.py Co-authored-by: Felix Fontein <[email protected]> * simplify parse_check logic * fix condition of if * remove test made redundant by required_if * add changelog fragment Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit dfe1f9a)
* consul: pythonisms + a couple of required_if clauses * adjust condition of if * adjust condition of if (again) * Update plugins/modules/clustering/consul/consul.py Co-authored-by: Felix Fontein <[email protected]> * simplify parse_check logic * fix condition of if * remove test made redundant by required_if * add changelog fragment Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit dfe1f9a) Co-authored-by: Alexei Znamensky <[email protected]>
…ions#5367) * consul: pythonisms + a couple of required_if clauses * adjust condition of if * adjust condition of if (again) * Update plugins/modules/clustering/consul/consul.py Co-authored-by: Felix Fontein <[email protected]> * simplify parse_check logic * fix condition of if * remove test made redundant by required_if * add changelog fragment Co-authored-by: Felix Fontein <[email protected]>
…ions#5367) * consul: pythonisms + a couple of required_if clauses * adjust condition of if * adjust condition of if (again) * Update plugins/modules/clustering/consul/consul.py Co-authored-by: Felix Fontein <[email protected]> * simplify parse_check logic * fix condition of if * remove test made redundant by required_if * add changelog fragment Co-authored-by: Felix Fontein <[email protected]>
…ions#5367) * consul: pythonisms + a couple of required_if clauses * adjust condition of if * adjust condition of if (again) * Update plugins/modules/clustering/consul/consul.py Co-authored-by: Felix Fontein <[email protected]> * simplify parse_check logic * fix condition of if * remove test made redundant by required_if * add changelog fragment Co-authored-by: Felix Fontein <[email protected]>
…ions#5367) * consul: pythonisms + a couple of required_if clauses * adjust condition of if * adjust condition of if (again) * Update plugins/modules/clustering/consul/consul.py Co-authored-by: Felix Fontein <[email protected]> * simplify parse_check logic * fix condition of if * remove test made redundant by required_if * add changelog fragment Co-authored-by: Felix Fontein <[email protected]>
SUMMARY
Minor refactor on the module.
ISSUE TYPE
COMPONENT NAME
plugins/modules/clustering/consul/consul.py