From c8e714fdfc43c4b057f269b8c218b57bad98e54b Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 8 Sep 2023 18:14:07 +0200 Subject: [PATCH] fix: openvpn_server - generate --- plugins/module_utils/openvpn_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/openvpn_server.py b/plugins/module_utils/openvpn_server.py index 00b29478..073d7dc1 100644 --- a/plugins/module_utils/openvpn_server.py +++ b/plugins/module_utils/openvpn_server.py @@ -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()