diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f584da0..0c714651 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Fix an issue where rule_run_at field is not send to the websocket - Don't try to connect with AWX when no run_job_template action is used - Limits the number of simultaneously open connections to controller to 30 +- Fixes a wrong 401 response from AWX when 443 port is present in CONTROLLER_URL () ### Removed diff --git a/ansible_rulebook/job_template_runner.py b/ansible_rulebook/job_template_runner.py index 1956189b..d3a8eade 100644 --- a/ansible_rulebook/job_template_runner.py +++ b/ansible_rulebook/job_template_runner.py @@ -35,7 +35,7 @@ class JobTemplateRunner: UNIFIED_TEMPLATE_SLUG = "/api/v2/unified_job_templates/" - CONFIG_SLUG = "/api/v2/config" + CONFIG_SLUG = "/api/v2/config/" JOB_COMPLETION_STATUSES = ["successful", "failed", "error", "canceled"] def __init__( diff --git a/tests/test_controller.py b/tests/test_controller.py index e0cd3af4..fa96d287 100644 --- a/tests/test_controller.py +++ b/tests/test_controller.py @@ -39,7 +39,7 @@ UNIFIED_JOB_TEMPLATE_PAGE2_SLUG, ) -CONFIG_SLUG = "/api/v2/config" +CONFIG_SLUG = "/api/v2/config/" @pytest.fixture