mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix getheaders regression with open_url in Scaleway dynamic inventory (#48671)
* Fix regression * Improve changelog fragment
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user