8000 Updated keycloak.py to allow defining connection timeout value (#4168) by laskasn · Pull Request #4178 · ansible-collections/community.general · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updated keycloak.py to allow defining connection timeout value (#4168) #4178

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

Merged
merged 3 commits into from
Feb 14, 2022

Conversation

laskasn
Copy link
Contributor
@laskasn laskasn commented Feb 9, 2022
SUMMARY

You can find a summary along with a discussion here

IMPORTANT: This pull request adds a new parameter to the keycloak module, the connection_timeout.
If provided, it propagates this value as the optional value timeout to the open_url() calls. By default (if not defined), it inherits the 10 sec default value of the underlying timeout parameter.
We decided to name it connection_timeout instead of just timeout, because we didn't want to have a naming collision with the task timeout parameter or the network-specific ones, as mentioned here, but we could rename it into anything else in case this name is not appropriate.

The documentation should also be updated, to include this parameter as an optional to all keycloak plugin calls.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

keycloak

ADDITIONAL INFORMATION

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request identity module_utils module_utils new_contributor Help guide this first time contributor plugins plugin (any type) labels Feb 9, 2022
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Feb 9, 2022
@felixfontein felixfontein added backport-4 check-before-release PR will be looked at again shortly before release and merged if possible. labels Feb 10, 2022
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.

Thanks for your contribution!

You also need to document the new parameter in plugins/doc_fragments/keycloak.py.

@ansibullbot ansibullbot added the docs_fragments docs_fragments plugin (shared docs) label Feb 10, 2022
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added the ci_verified Push fixes to PR branch to re-run CI label Feb 10, 2022
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.

Please check out the linting errors reported by CI, these also need to be fixed before merging.

@felixfontein
Copy link
Collaborator

CC @kris2kris @pmdumuid @laurpaum

@ansibullbot ansibullbot removed ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Feb 11, 2022
@felixfontein
Copy link
Collaborator

Also CC @fynncfchen since this will 8000 affect the new modules PRs. The code they add (to module_utils) will have to be modified to use the timeout parameter as well.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Feb 14, 2022
@felixfontein felixfontein merged commit 2498591 into ansible-collections:main Feb 14, 2022
@patchback
Copy link
patchback bot commented Feb 14, 2022

Backport to stable-4: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4/249859169532278791342c9f775031af58a383b9/pr-4178

Backported as #4198

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 14, 2022
#4178)

* Updated keycloak.py to allow defining connection timeout value (#4168) (#2)

* Added parameter to doc_fragments and edited the changelog message (#4168)

* Added parameter to doc_fragments and edited the changelog message (#4168)

(cherry picked from commit 2498591)
@felixfontein
Copy link
Collaborator

@laskasn thanks for contributing this!
@kris2kris @pmdumuid thanks for reviewing!

felixfontein pushed a commit that referenced this pull request Feb 14, 2022
#4178) (#4198)

* Updated keycloak.py to allow defining connection timeout value (#4168) (#2)

* Added parameter to doc_fragments and edited the changelog message (#4168)

* Added parameter to doc_fragments and edited the changelog message (#4168)

(cherry picked from commit 2498591)

Co-authored-by: Nikolas Laskaris <laskarisn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs_fragments docs_fragments plugin (shared docs) feature This issue/PR relates to a feature request identity module_utils module_utils new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0