mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Adds various fixes for f5 modules (#40208)
* Adds stty expansion for cli commands * minor fixes * Make bigiq rest client work correctly
This commit is contained in:
@@ -62,7 +62,9 @@ class F5Client(F5BaseClient):
|
||||
|
||||
class F5RestClient(F5BaseClient):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(F5RestClient, self).__init__(*args, **kwargs)
|
||||
params = kwargs.get('module').params
|
||||
module = kwargs.pop('module')
|
||||
super(F5RestClient, self).__init__(module=module, **params)
|
||||
self.provider = self.merge_provider_params()
|
||||
|
||||
@property
|
||||
|
||||
@@ -434,7 +434,7 @@ class F5BaseClient(object):
|
||||
elif os.environ.get('ANSIBLE_NET_USERNAME', None):
|
||||
result['user'] = os.environ.get('ANSIBLE_NET_USERNAME', None)
|
||||
else:
|
||||
result['user'] = True
|
||||
result['user'] = None
|
||||
|
||||
if provider.get('password', None):
|
||||
result['password'] = provider.get('password', None)
|
||||
@@ -445,7 +445,7 @@ class F5BaseClient(object):
|
||||
elif os.environ.get('ANSIBLE_NET_PASSWORD', None):
|
||||
result['password'] = os.environ.get('ANSIBLE_NET_PASSWORD', None)
|
||||
else:
|
||||
result['password'] = True
|
||||
result['password'] = None
|
||||
|
||||
if result['validate_certs'] in BOOLEANS_TRUE:
|
||||
result['validate_certs'] = True
|
||||
|
||||
Reference in New Issue
Block a user