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,