Skip to content

Commit

Permalink
fix dangerous_no_tls_verify (#135)
Browse files Browse the repository at this point in the history
Co-authored-by: tanganellilore <lorenzo.tanganelli@hotmail>
  • Loading branch information
tanganellilore and tanganellilore authored Sep 25, 2024
1 parent 5a2c329 commit 05108fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/cloudstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_api_config(self):
'timeout': self.module.params.get('api_timeout'),
'method': self.module.params.get('api_http_method'),
'verify': self.module.params.get('api_verify_ssl_cert'),
'dangerous_no_tls_verify': self.module.params.get('validate_certs'),
'dangerous_no_tls_verify': not self.module.params.get('validate_certs'),
}

self.result.update({
Expand All @@ -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

Expand Down

0 comments on commit 05108fc

Please sign in to comment.