Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pfsense_openvpn_server] No longer sort authmode items #161

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/openvpn_server_unsorted_authmode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- pfsense_openvpn_server - no longer sort authmode items
2 changes: 1 addition & 1 deletion plugins/module_utils/openvpn_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _params_to_obj(self):
obj['create_gw'] = self.params['create_gw']

if 'user' in self.params['mode']:
obj['authmode'] = ",".join(sorted(self.params['authmode']))
obj['authmode'] = ",".join(self.params['authmode'])

if 'tls' in self.params['mode']:
# Find the caref id for the named CA
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/pfsense_openvpn_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
type: str
authmode:
description:
- Authentication servers. This list will be put into alphabetical order. Required if mode == server_tls_user.
- Authentication servers. Required if mode == server_tls_user.
- Use 'Local Database' for authentication against the local pfSense user database.
default: []
type: list
Expand Down