Fix getheaders regression with open_url in Scaleway dynamic inventory (#48671)

* Fix regression

* Improve changelog fragment
This commit is contained in:
Rémy Léone 2018-11-21 16:06:21 +01:00 committed by Matt Martz
parent 70fff13a6e
commit 959395f4b4
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
bugfixes:
- scaleway inventory plugin - Fix response.getheaders regression (https://github.com/ansible/ansible/pull/48671)

View file

@ -113,7 +113,7 @@ def _fetch_information(token, url):
except KeyError:
raise AnsibleError("Incorrect format from the Scaleway API response")
link = response.getheader('Link')
link = response.headers['Link']
if not link:
return results
relations = parse_pagination_link(link)