{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments/85847523","pull_request_review_id":6538877,"id":85847523,"diff_hunk":"@@ -755,6 +755,30 @@ def get_updated_cache_time():\n     return mtimestamp, updated_cache_time\n \n \n+# https://github.com/ansible/ansible-modules-core/issues/2951\n+def get_cache(module):\n+    '''Attempt to get the cache object and update till it works'''\n+    cache = None\n+    try:\n+        cache = apt.Cache()\n+    except SystemError as e:","path":"packaging/os/apt.py","position":10,"original_position":10,"commit_id":"2f3e7d6fc3cf69f9254bc554c7f049f3784fc7fa","original_commit_id":"2f3e7d6fc3cf69f9254bc554c7f049f3784fc7fa","user":{"login":"mattclay","id":806360,"avatar_url":"https://avatars.githubusercontent.com/u/806360?v=3","gravatar_id":"","url":"https://api.github.com/users/mattclay","html_url":"https://github.com/mattclay","followers_url":"https://api.github.com/users/mattclay/followers","following_url":"https://api.github.com/users/mattclay/following{/other_user}","gists_url":"https://api.github.com/users/mattclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mattclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattclay/subscriptions","organizations_url":"https://api.github.com/users/mattclay/orgs","repos_url":"https://api.github.com/users/mattclay/repos","events_url":"https://api.github.com/users/mattclay/events{/privacy}","received_events_url":"https://api.github.com/users/mattclay/received_events","type":"User","site_admin":false},"body":"This exception syntax isn't compatible with python 2.4, which is why CI is failing.","created_at":"2016-10-31T22:36:35Z","updated_at":"2016-10-31T22:36:35Z","html_url":"https://github.com/ansible/ansible-modules-core/pull/5448#discussion_r85847523","pull_request_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments/85847523"},"html":{"href":"https://github.com/ansible/ansible-modules-core/pull/5448#discussion_r85847523"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448","id":91696002,"html_url":"https://github.com/ansible/ansible-modules-core/pull/5448","diff_url":"https://github.com/ansible/ansible-modules-core/pull/5448.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/5448.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5448","number":5448,"state":"open","locked":false,"title":"apt: update cache until corrupt package lists are fixed","user":{"login":"jctanner","id":1869705,"avatar_url":"https://avatars.githubusercontent.com/u/1869705?v=3","gravatar_id":"","url":"https://api.github.com/users/jctanner","html_url":"https://github.com/jctanner","followers_url":"https://api.github.com/users/jctanner/followers","following_url":"https://api.github.com/users/jctanner/following{/other_user}","gists_url":"https://api.github.com/users/jctanner/gists{/gist_id}","starred_url":"https://api.github.com/users/jctanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jctanner/subscriptions","organizations_url":"https://api.github.com/users/jctanner/orgs","repos_url":"https://api.github.com/users/jctanner/repos","events_url":"https://api.github.com/users/jctanner/events{/privacy}","received_events_url":"https://api.github.com/users/jctanner/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n\r\n - Bugfix Pull Request\r\n\r\n\r\n##### COMPONENT NAME\r\napt module\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\n2.3\r\n```\r\n\r\n##### SUMMARY\r\n\r\nFixes #2951","created_at":"2016-10-31T21:40:09Z","updated_at":"2016-10-31T22:36:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b184e6b02a251312385efa6aff438765f4a21f45","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5448/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/2f3e7d6fc3cf69f9254bc554c7f049f3784fc7fa","head":{"label":"jctanner:APT_BROKEN_PACKAGE_LIST","ref":"APT_BROKEN_PACKAGE_LIST","sha":"2f3e7d6fc3cf69f9254bc554c7f049f3784fc7fa","user":{"login":"jctanner","id":1869705,"avatar_url":"https://avatars.githubusercontent.com/u/1869705?v=3","gravatar_id":"","url":"https://api.github.com/users/jctanner","html_url":"https://github.com/jctanner","followers_url":"https://api.github.com/users/jctanner/followers","following_url":"https://api.github.com/users/jctanner/following{/other_user}","gists_url":"https://api.github.com/users/jctanner/gists{/gist_id}","starred_url":"https://api.github.com/users/jctanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jctanner/subscriptions","organizations_url":"https://api.github.com/users/jctanner/orgs","repos_url":"https://api.github.com/users/jctanner/repos","events_url":"https://api.github.com/users/jctanner/events{/privacy}","received_events_url":"https://api.github.com/users/jctanner/received_events","type":"User","site_admin":false},"repo":{"id":56619973,"name":"ansible-modules-core","full_name":"jctanner/ansible-modules-core","owner":{"login":"jctanner","id":1869705,"avatar_url":"https://avatars.githubusercontent.com/u/1869705?v=3","gravatar_id":"","url":"https://api.github.com/users/jctanner","html_url":"https://github.com/jctanner","followers_url":"https://api.github.com/users/jctanner/followers","following_url":"https://api.github.com/users/jctanner/following{/other_user}","gists_url":"https://api.github.com/users/jctanner/gists{/gist_id}","starred_url":"https://api.github.com/users/jctanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jctanner/subscriptions","organizations_url":"https://api.github.com/users/jctanner/orgs","repos_url":"https://api.github.com/users/jctanner/repos","events_url":"https://api.github.com/users/jctanner/events{/privacy}","received_events_url":"https://api.github.com/users/jctanner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jctanner/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/jctanner/ansible-modules-core","forks_url":"https://api.github.com/repos/jctanner/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/jctanner/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jctanner/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jctanner/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/jctanner/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/jctanner/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/jctanner/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/jctanner/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/jctanner/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/jctanner/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/jctanner/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jctanner/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jctanner/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/jctanner/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jctanner/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/jctanner/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/jctanner/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/jctanner/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/jctanner/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/jctanner/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/jctanner/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/jctanner/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/jctanner/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/jctanner/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/jctanner/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/jctanner/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jctanner/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/jctanner/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jctanner/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/jctanner/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/jctanner/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/jctanner/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/jctanner/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jctanner/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/jctanner/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/jctanner/ansible-modules-core/deployments","created_at":"2016-04-19T18:07:43Z","updated_at":"2016-04-19T18:07:45Z","pushed_at":"2016-10-31T22:03:51Z","git_url":"git://github.com/jctanner/ansible-modules-core.git","ssh_url":"git@github.com:jctanner/ansible-modules-core.git","clone_url":"https://github.com/jctanner/ansible-modules-core.git","svn_url":"https://github.com/jctanner/ansible-modules-core","homepage":"","size":9143,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"f9fada7db09d48cc721738e0444d8f2cfd0a9e1c","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":24474126,"name":"ansible-modules-core","full_name":"ansible/ansible-modules-core","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-core","forks_url":"https://api.github.com/repos/ansible/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-core/deployments","created_at":"2014-09-25T20:28:25Z","updated_at":"2016-10-31T14:46:11Z","pushed_at":"2016-10-31T22:32:22Z","git_url":"git://github.com/ansible/ansible-modules-core.git","ssh_url":"git@github.com:ansible/ansible-modules-core.git","clone_url":"https://github.com/ansible/ansible-modules-core.git","svn_url":"https://github.com/ansible/ansible-modules-core","homepage":"","size":21178,"stargazers_count":877,"watchers_count":877,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1952,"mirror_url":null,"open_issues_count":1216,"forks":1952,"open_issues":1216,"watchers":877,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448"},"html":{"href":"https://github.com/ansible/ansible-modules-core/pull/5448"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5448"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5448/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/5448/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/2f3e7d6fc3cf69f9254bc554c7f049f3784fc7fa"}}}}
{"actor":{"display_login":"mattclay"}}