Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions plugins/module_utils/cdp_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _impl(self, *args, **kwargs):
def __init__(self, module):
# Set common parameters
self.module = module
self.tls = self._get_param("verify_tls", False)
self.verify_tls = self._get_param("verify_tls", False)
self.debug = self._get_param("debug", False)
self.strict = self._get_param("strict", False)
self.agent_header = self._get_param("agent_header", "ClouderaFoundry")
Expand All @@ -61,7 +61,7 @@ def __init__(self, module):
# Client Wrapper
self.cdpy = Cdpy(
debug=self.debug,
tls_verify=self.tls,
tls_verify=self.verify_tls,
strict_errors=self.strict,
error_handler=self._cdp_module_throw_error,
warning_handler=self._cdp_module_throw_warning,
Expand Down Expand Up @@ -103,7 +103,12 @@ def argument_spec(**spec):
"""Default Ansible Module spec values for convenience"""
return dict(
**spec,
verify_tls=dict(required=False, type="bool", default=True, aliases=["tls"]),
verify_tls=dict(
required=False,
type="bool",
default=True,
aliases=["verify_api_tls"],
),
debug=dict(
required=False,
type="bool",
Expand Down
Loading