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:
parent
189375c611
commit
dca887a6dc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue