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>
pull/28836/merge
Abhijeet Kasurde 7 years ago committed by Chris Alfonso
parent 189375c611
commit dca887a6dc

@ -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

Loading…
Cancel
Save