Fix getheaders regression with open_url in Scaleway dynamic inventory (#48671)
* Fix regression * Improve changelog fragment
This commit is contained in:
parent
70fff13a6e
commit
959395f4b4
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/scaleway-getheaders.yaml
Normal file
3
changelogs/fragments/scaleway-getheaders.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- scaleway inventory plugin - Fix response.getheaders regression (https://github.com/ansible/ansible/pull/48671)
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue