Skip to content

Commit

Permalink
Add trailing slash to config slug in awx client (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Izquierdo authored Aug 9, 2023
1 parent 050184c commit a90363d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<https://github.com/ansible/ansible-rulebook/issues/554>)


### Removed
Expand Down
2 changes: 1 addition & 1 deletion ansible_rulebook/job_template_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
UNIFIED_JOB_TEMPLATE_PAGE2_SLUG,
)

CONFIG_SLUG = "/api/v2/config"
CONFIG_SLUG = "/api/v2/config/"


@pytest.fixture
Expand Down

0 comments on commit a90363d

Please sign in to comment.