mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07: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:
parent
990e95eb57
commit
79153b95e5
3 changed files with 231 additions and 15 deletions
|
@ -63,9 +63,7 @@ class F5Client(F5BaseClient):
|
|||
|
||||
class F5RestClient(F5BaseClient):
|
||||
def __init__(self, *args, **kwargs):
|
||||
params = kwargs.get('module').params
|
||||
module = kwargs.pop('module')
|
||||
super(F5RestClient, self).__init__(module=module, **params)
|
||||
super(F5RestClient, self).__init__(*args, **kwargs)
|
||||
self.provider = self.merge_provider_params()
|
||||
|
||||
@property
|
||||
|
@ -89,7 +87,7 @@ class F5RestClient(F5BaseClient):
|
|||
|
||||
if response.status not in [200]:
|
||||
raise F5ModuleError('Status code: {0}. Unexpected Error: {1} for uri: {2}\nText: {3}'.format(
|
||||
response.status, response.reason, response.url, response._content
|
||||
response.status, response.reason, response.url, response.content
|
||||
))
|
||||
|
||||
session.headers['X-F5-Auth-Token'] = response.json()['token']['token']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue