From dca887a6dc3b1b60e6b8b821c54cf5eb926dbcd2 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 31 Aug 2017 00:05:42 +0530 Subject: [PATCH] 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 --- lib/ansible/modules/source_control/github_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/source_control/github_key.py b/lib/ansible/modules/source_control/github_key.py index c8b80eceeb..79758fd7db 100644 --- a/lib/ansible/modules/source_control/github_key.py +++ b/lib/ansible/modules/source_control/github_key.py @@ -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