From a23cd6c1d5260c1fb2b2228d5f87bc42a0140fae Mon Sep 17 00:00:00 2001 From: dsmackie <48046804+dsmackie@users.noreply.github.com> Date: Thu, 7 Sep 2023 02:40:26 +0930 Subject: [PATCH] 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 --- 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 cd2abc568e..9ae82df8b3 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,