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

sanitse hostname URL with regex validation #363

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daparm
Copy link

@daparm daparm commented Nov 25, 2024

Sanitise Hostname URL in the same manner as the other existing upstream Projects AWX and Galaxy:

AWX:
https://github.com/ansible/awx/blob/devel/awx_collection/plugins/module_utils/controller_api.py#L108

Galaxy:
https://github.com/ansible-collections/ansible_hub/blob/main/plugins/module_utils/ah_module.py#L127

Based on this raised issue by myself in the redhat-cop infra.aap_configuration collection to provide a unified way to "aap_hostname" formerly "controller_hostname" variable across all endpoints.

redhat-cop/infra.aap_configuration#985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants