{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/8157","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/8157/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/8157/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/8157/events","html_url":"https://github.com/saltstack/salt/issues/8157","id":21739793,"number":8157,"title":"winrepo.genrepo fails if one of the packages in winrepo is malformed.","user":{"login":"bogdanr","id":1079875,"avatar_url":"https://avatars2.githubusercontent.com/u/1079875?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdanr","html_url":"https://github.com/bogdanr","followers_url":"https://api.github.com/users/bogdanr/followers","following_url":"https://api.github.com/users/bogdanr/following{/other_user}","gists_url":"https://api.github.com/users/bogdanr/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanr/subscriptions","organizations_url":"https://api.github.com/users/bogdanr/orgs","repos_url":"https://api.github.com/users/bogdanr/repos","events_url":"https://api.github.com/users/bogdanr/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanr/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":41388135,"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143","default":false},{"id":194766302,"url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77","default":false},{"id":194768064,"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0","default":false},{"id":58954720,"url":"https://api.github.com/repos/saltstack/salt/labels/Windows","name":"Windows","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestone/13","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars0.githubusercontent.com/u/507599?v=4","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2939,"closed_issues":6073,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2017-12-18T18:20:20Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2013-10-29T06:43:42Z","updated_at":"2017-12-18T20:14:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I am testing with the git repo hosted here and apparently one of the packages is malformed so winrepo.genrepo fails making the whole git repository unusable.\n\nI believe the malformed packages should be logged and handled gracefully so we can use the repo even if some of the packages are not OK.\n\nnimblex:~# salt-run winrepo.update_git_repos\n{'https://github.com/saltstack/salt-winrepo.git': True}\nnimblex:~# \nnimblex:~# salt-run winrepo.genrepo\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\nTypeError: list indices must be integers, not str\nTraceback (most recent call last):\n  File \"/usr/bin/salt-run\", line 10, in <module>\n    salt_run()\n  File \"/usr/lib64/python2.7/site-packages/salt/scripts.py\", line 90, in salt_run\n    client.run()\n  File \"/usr/lib64/python2.7/site-packages/salt/cli/**init**.py\", line 346, in run\n    runner.run()\n  File \"/usr/lib64/python2.7/site-packages/salt/runner.py\", line 153, in run\n    self.opts['fun'], self.opts['arg'], self.opts)\n  File \"/usr/lib64/python2.7/site-packages/salt/runner.py\", line 85, in cmd\n    return self.functions[fun](*args, **kwargs)\n  File \"/usr/lib64/python2.7/site-packages/salt/runners/winrepo.py\", line 58, in genrepo\n    revmap[repodata['full_name']] = pkgname\nTypeError: list indices must be integers, not str\nTraceback (most recent call last):\n  File \"/usr/bin/salt-run\", line 10, in <module>\n    salt_run()\n  File \"/usr/lib64/python2.7/site-packages/salt/scripts.py\", line 90, in salt_run\n    client.run()\n  File \"/usr/lib64/python2.7/site-packages/salt/cli/**init**.py\", line 346, in run\n    runner.run()\n  File \"/usr/lib64/python2.7/site-packages/salt/runner.py\", line 153, in run\n    self.opts['fun'], self.opts['arg'], self.opts)\n  File \"/usr/lib64/python2.7/site-packages/salt/runner.py\", line 85, in cmd\n    return self.functions[fun](*args, **kwargs)\n  File \"/usr/lib64/python2.7/site-packages/salt/runners/winrepo.py\", line 58, in genrepo\n    revmap[repodata['full_name']] = pkgname\nTypeError: list indices must be integers, not str\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/352544818","html_url":"https://github.com/saltstack/salt/issues/8157#issuecomment-352544818","issue_url":"https://api.github.com/repos/saltstack/salt/issues/8157","id":352544818,"user":{"login":"stale[bot]","id":26384082,"avatar_url":"https://avatars2.githubusercontent.com/u/26350515?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2017-12-18T20:14:04Z","updated_at":"2017-12-18T20:14:04Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n\nIf this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.\n"}}
{"actor":{"display_login":"stale"}}