mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* fix: scaleway inventory pagination
* add changelog
* Update changelogs/fragments/2036-scaleway-inventory.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Antoine Barbare <abarbare@online.net>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit fe61be3e11
)
Co-authored-by: abarbare <antoinebarbare@gmail.com>
This commit is contained in:
parent
75196b924b
commit
fc3e25c2d0
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/2036-scaleway-inventory.yml
Normal file
3
changelogs/fragments/2036-scaleway-inventory.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- scaleway inventory plugin - fix pagination on scaleway inventory plugin (https://github.com/ansible-collections/community.general/pull/2036).
|
|
@ -39,7 +39,7 @@ class ScalewayException(Exception):
|
||||||
R_LINK_HEADER = r'''<[^>]+>;\srel="(first|previous|next|last)"
|
R_LINK_HEADER = r'''<[^>]+>;\srel="(first|previous|next|last)"
|
||||||
(,<[^>]+>;\srel="(first|previous|next|last)")*'''
|
(,<[^>]+>;\srel="(first|previous|next|last)")*'''
|
||||||
# Specify a single relation, for iteration and string extraction purposes
|
# Specify a single relation, for iteration and string extraction purposes
|
||||||
R_RELATION = r'<(?P<target_IRI>[^>]+)>; rel="(?P<relation>first|previous|next|last)"'
|
R_RELATION = r'</?(?P<target_IRI>[^>]+)>; rel="(?P<relation>first|previous|next|last)"'
|
||||||
|
|
||||||
|
|
||||||
def parse_pagination_link(header):
|
def parse_pagination_link(header):
|
||||||
|
|
Loading…
Reference in a new issue