diff --git a/changelogs/fragments/2036-scaleway-inventory.yml b/changelogs/fragments/2036-scaleway-inventory.yml new file mode 100644 index 0000000000..44161306ac --- /dev/null +++ b/changelogs/fragments/2036-scaleway-inventory.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - scaleway inventory plugin - fix pagination on scaleway inventory plugin (https://github.com/ansible-collections/community.general/pull/2036). diff --git a/plugins/module_utils/scaleway.py b/plugins/module_utils/scaleway.py index f5107feda2..3c73e92bb8 100644 --- a/plugins/module_utils/scaleway.py +++ b/plugins/module_utils/scaleway.py @@ -39,7 +39,7 @@ class ScalewayException(Exception): R_LINK_HEADER = r'''<[^>]+>;\srel="(first|previous|next|last)" (,<[^>]+>;\srel="(first|previous|next|last)")*''' # Specify a single relation, for iteration and string extraction purposes -R_RELATION = r'<(?P[^>]+)>; rel="(?Pfirst|previous|next|last)"' +R_RELATION = r'[^>]+)>; rel="(?Pfirst|previous|next|last)"' def parse_pagination_link(header):