Skip to content

Commit

Permalink
[pfsense_openvpn_server] No longer sort authmode items
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Jan 27, 2025
1 parent 9fa194f commit f717501
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
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

0 comments on commit f717501

Please sign in to comment.