mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Adds params to the profile-client-ssl module (#44656)
This patch adds new parameters to the client ssl module.
This commit is contained in:
@@ -54,6 +54,7 @@ f5_provider_spec = {
|
||||
default='rest'
|
||||
),
|
||||
'timeout': dict(type='int'),
|
||||
'auth_provider': dict()
|
||||
}
|
||||
|
||||
f5_argument_spec = {
|
||||
@@ -88,6 +89,9 @@ f5_top_spec = {
|
||||
'transport': dict(
|
||||
removed_in_version=2.9,
|
||||
choices=['cli', 'rest']
|
||||
),
|
||||
'auth_provider': dict(
|
||||
default=None
|
||||
)
|
||||
}
|
||||
f5_argument_spec.update(f5_top_spec)
|
||||
@@ -105,6 +109,13 @@ def load_params(params):
|
||||
params[key] = value
|
||||
|
||||
|
||||
def is_empty_list(seq):
|
||||
if len(seq) == 1:
|
||||
if seq[0] == '' or seq[0] == 'none':
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
# Fully Qualified name (with the partition)
|
||||
def fqdn_name(partition, value):
|
||||
"""This method is not used
|
||||
@@ -204,7 +215,9 @@ def flatten_boolean(value):
|
||||
return 'no'
|
||||
|
||||
|
||||
def cleanup_tokens(client):
|
||||
def cleanup_tokens(client=None):
|
||||
if client is None:
|
||||
return
|
||||
try:
|
||||
# isinstance cannot be used here because to import it creates a
|
||||
# circular dependency with teh module_utils.network.f5.bigip file.
|
||||
|
||||
Reference in New Issue
Block a user