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

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