Skip to content

Commit

Permalink
Ensure pritunl validate_certs is honoured in all methods (ansible-col…
Browse files Browse the repository at this point in the history
…lections#7156)

* Ensure pritunl validate_certs is honoured in all methods

* Create changelog fragment

* Rename 7156-ensure-validate-certs-parameter-is-honoured to 7156-ensure-validate-certs-parameter-is-honoured.yml

* Update changelog fragment.

---------

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
2 people authored and Eric Trombly committed Oct 25, 2023
1 parent 21f2969 commit eb01de1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- pritunl module utils - ensure ``validate_certs`` parameter is honoured in all methods (https://github.com/ansible-collections/community.general/pull/7156).
10 changes: 5 additions & 5 deletions plugins/module_utils/net_tools/pritunl/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def post_pritunl_organization(
api_secret=api_secret,
base_url=base_url,
organization_data={"name": organization_name},
validate_certs=True,
validate_certs=validate_certs,
)

if response.getcode() != 200:
Expand Down Expand Up @@ -248,7 +248,7 @@ def post_pritunl_user(
base_url=base_url,
organization_id=organization_id,
user_data=user_data,
validate_certs=True,
validate_certs=validate_certs,
)

if response.getcode() != 200:
Expand All @@ -267,7 +267,7 @@ def post_pritunl_user(
organization_id=organization_id,
user_data=user_data,
user_id=user_id,
validate_certs=True,
validate_certs=validate_certs,
)

if response.getcode() != 200:
Expand All @@ -287,7 +287,7 @@ def delete_pritunl_organization(
api_secret=api_secret,
base_url=base_url,
organization_id=organization_id,
validate_certs=True,
validate_certs=validate_certs,
)

if response.getcode() != 200:
Expand All @@ -307,7 +307,7 @@ def delete_pritunl_user(
base_url=base_url,
organization_id=organization_id,
user_id=user_id,
validate_certs=True,
validate_certs=validate_certs,
)

if response.getcode() != 200:
Expand Down

0 comments on commit eb01de1

Please sign in to comment.