diff --git a/plugins/module_utils/cloudstack.py b/plugins/module_utils/cloudstack.py index 2b8a8bb..2637a5e 100644 --- a/plugins/module_utils/cloudstack.py +++ b/plugins/module_utils/cloudstack.py @@ -132,7 +132,7 @@ def get_api_config(self): 'api_timeout': int(api_config['timeout']), 'api_http_method': api_config['method'], 'api_verify_ssl_cert': api_config['verify'], - 'validate_certs': api_config['dangerous_no_tls_verify'], + 'validate_certs': not api_config['dangerous_no_tls_verify'], }) return api_config