Add a User-Agent string to the API request (#38587)

This commit is contained in:
Rémy Léone 2018-05-14 16:55:47 +02:00 committed by Adam Miller
parent 19977e80f0
commit afc196acf1
3 changed files with 12 additions and 6 deletions

View file

@ -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)