mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Add a User-Agent string to the API request (#38587)
This commit is contained in:
@@ -584,8 +584,7 @@ def core(module):
|
||||
}
|
||||
|
||||
compute_api = ScalewayAPI(module=module,
|
||||
headers={'X-Auth-Token': api_token,
|
||||
'Content-type': 'application/json'},
|
||||
headers={'X-Auth-Token': api_token},
|
||||
base_url=SCALEWAY_LOCATION[region]["api_endpoint"])
|
||||
|
||||
changed, summary = state_strategy[wished_server["state"]](compute_api=compute_api, wished_server=wished_server)
|
||||
|
||||
@@ -109,8 +109,7 @@ def core(module):
|
||||
ssh_pub_key = module.params['ssh_pub_key']
|
||||
state = module.params["state"]
|
||||
account_api = ScalewayAPI(module,
|
||||
headers={'X-Auth-Token': api_token,
|
||||
'Content-type': 'application/json'},
|
||||
headers={'X-Auth-Token': api_token},
|
||||
base_url=module.params["base_url"])
|
||||
response = account_api.get('organizations')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user