diff --git a/changelogs/fragments/444-scaleway_fix_http_header_casing.yml b/changelogs/fragments/444-scaleway_fix_http_header_casing.yml new file mode 100644 index 0000000000..a261afbfb8 --- /dev/null +++ b/changelogs/fragments/444-scaleway_fix_http_header_casing.yml @@ -0,0 +1,2 @@ +bugfixes: + - scaleway - Fix bug causing KeyError exception on JSON http requests. (https://github.com/ansible-collections/community.general/pull/444) diff --git a/plugins/module_utils/scaleway.py b/plugins/module_utils/scaleway.py index 50041eff52..02e09394e6 100644 --- a/plugins/module_utils/scaleway.py +++ b/plugins/module_utils/scaleway.py @@ -90,7 +90,7 @@ class Scaleway(object): self.headers = { 'X-Auth-Token': self.module.params.get('api_token'), 'User-Agent': self.get_user_agent_string(module), - 'Content-type': 'application/json', + 'Content-Type': 'application/json', } self.name = None