From b6ed6787b5a2fbf50f0bc4ea4e38ad98af00f7f7 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 22:06:16 +0200 Subject: [PATCH] [PR #7161/a23cd6c1 backport][stable-7] Update incorrect path for pritunl organization post (#7214) Update incorrect path for pritunl organization post (#7161) * Update incorrect path for organization post * Create changelog fragment * Update changelog fragment. --------- Co-authored-by: Felix Fontein (cherry picked from commit a23cd6c1d5260c1fb2b2228d5f87bc42a0140fae) Co-authored-by: dsmackie <48046804+dsmackie@users.noreply.github.com> --- changelogs/fragments/7161-fix-incorrect-post-parameter.yml | 2 ++ plugins/module_utils/net_tools/pritunl/api.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/7161-fix-incorrect-post-parameter.yml diff --git a/changelogs/fragments/7161-fix-incorrect-post-parameter.yml b/changelogs/fragments/7161-fix-incorrect-post-parameter.yml new file mode 100644 index 0000000000..ce2359a623 --- /dev/null +++ b/changelogs/fragments/7161-fix-incorrect-post-parameter.yml @@ -0,0 +1,2 @@ +bugfixes: +- pritunl module utils - fix incorrect URL parameter for orgnization add method (https://github.com/ansible-collections/community.general/pull/7161). diff --git a/plugins/module_utils/net_tools/pritunl/api.py b/plugins/module_utils/net_tools/pritunl/api.py index 59da7078d1..be3bbe16f7 100644 --- a/plugins/module_utils/net_tools/pritunl/api.py +++ b/plugins/module_utils/net_tools/pritunl/api.py @@ -79,7 +79,7 @@ def _post_pritunl_organization( api_secret=api_secret, base_url=base_url, method="POST", - path="/organization/%s", + path="/organization", headers={"Content-Type": "application/json"}, data=json.dumps(organization_data), validate_certs=validate_certs,