mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-18 06:11:07 -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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue