1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Use correct variable from response in github_key (#25846)

Before fix, logic tries to access info from 're' library
which raises AttributeError.
Fix adds correct variable usage for accessing next/previous
search results from github api.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-08-31 00:05:42 +05:30 committed by Chris Alfonso
parent 189375c611
commit dca887a6dc

View file

@ -103,7 +103,7 @@ class GitHubResponse(object):
def links(self):
links = {}
if 'link' in self.info:
link_header = re.info['link']
link_header = self.info['link']
matches = re.findall('<([^>]+)>; rel="([^"]+)"', link_header)
for url, rel in matches:
links[rel] = url