mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Add a User-Agent string to the API request (#38587)
This commit is contained in:
parent
19977e80f0
commit
afc196acf1
3 changed files with 12 additions and 6 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue