Skip to content

Commit

Permalink
fix: openvpn_server - generate
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire authored and opoplawski committed Jan 4, 2024
1 parent 90d5406 commit c8e714f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/openvpn_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _validate_params(self):
if params[param] is not None:
key = params[param]
if key == 'generate':
# generate during params_to_obj
# generate during _find_target (after _params_to_obj) - for just generate if not exists
pass
elif re.search('^-----BEGIN OpenVPN Static key V1-----.*-----END OpenVPN Static key V1-----$', key, flags=re.MULTILINE | re.DOTALL):
params[param] = base64.b64encode(key.encode()).decode()
Expand Down

0 comments on commit c8e714f

Please sign in to comment.