{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20734","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20734/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20734/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20734/events","html_url":"https://github.com/saltstack/salt/issues/20734","id":57846683,"number":20734,"title":"winrepo.genrepo type error: Passed invalid arguments: list indices must be integers, not str","user":{"login":"TheBigBear","id":471105,"avatar_url":"https://avatars.githubusercontent.com/u/471105?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBigBear","html_url":"https://github.com/TheBigBear","followers_url":"https://api.github.com/users/TheBigBear/followers","following_url":"https://api.github.com/users/TheBigBear/following{/other_user}","gists_url":"https://api.github.com/users/TheBigBear/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBigBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBigBear/subscriptions","organizations_url":"https://api.github.com/users/TheBigBear/orgs","repos_url":"https://api.github.com/users/TheBigBear/repos","events_url":"https://api.github.com/users/TheBigBear/events{/privacy}","received_events_url":"https://api.github.com/users/TheBigBear/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Medium%20Severity","name":"Medium Severity","color":"fad8c7"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Windows","name":"Windows","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"twangboy","id":9383935,"avatar_url":"https://avatars.githubusercontent.com/u/9383935?v=3","gravatar_id":"","url":"https://api.github.com/users/twangboy","html_url":"https://github.com/twangboy","followers_url":"https://api.github.com/users/twangboy/followers","following_url":"https://api.github.com/users/twangboy/following{/other_user}","gists_url":"https://api.github.com/users/twangboy/gists{/gist_id}","starred_url":"https://api.github.com/users/twangboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twangboy/subscriptions","organizations_url":"https://api.github.com/users/twangboy/orgs","repos_url":"https://api.github.com/users/twangboy/repos","events_url":"https://api.github.com/users/twangboy/events{/privacy}","received_events_url":"https://api.github.com/users/twangboy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","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://avatars.githubusercontent.com/u/507599?v=3","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":2395,"closed_issues":2254,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-07-07T22:55:42Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-16T20:13:25Z","updated_at":"2015-07-07T22:57:41Z","closed_at":null,"body":"If i have the ```wmi_provider``` subdirectory of the git repo saltstack winrepo in my local masterless windows minions win_repo, and do a ``salt-call -l debug --local winrepo.genrepo``` I get:\r\n\r\n```\r\nC:\\salt>salt-call.exe --local -l debug winrepo.genrepo\r\n[DEBUG   ] Reading configuration from c:\\salt\\conf\\minion\r\n[DEBUG   ] Configuration file path: c:\\salt\\conf\\minion\r\n[DEBUG   ] Reading configuration from c:\\salt\\conf\\minion\r\n[DEBUG   ] Mako not available\r\nPassed invalid arguments: list indices must be integers, not str\r\nTraceback (most recent call last):\r\n  File \"salt/cli/caller.py\", line 129, in call\r\n  File \"salt/modules/win_repo.py\", line 79, in genrepo\r\nTypeError: list indices must be integers, not str\r\n```\r\n\r\nThis is another case where a mistake in sls recipes stops winrepo.genrepo from producing a new (even if incomplete) winrepo.p file. very similar to issue saltstack/salt #8157 https://github.com/saltstack/salt/issues/8157\r\n\r\nthe above mentioned culprit ```wmi_provider``` sls files do contain jinja in a windows sls file and that is (not yet) supported as logged in the comments to this commit here https://github.com/saltstack/salt-winrepo/commit/9afdab0dd03d51e92fc5064ad760c5357992966e . see saltstack/salt-winrepo issue #57 https://github.com/saltstack/salt-winrepo/issues/57 or saltstack/salt #6859 https://github.com/saltstack/salt/issues/6859"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/119367867","html_url":"https://github.com/saltstack/salt/issues/20734#issuecomment-119367867","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20734","id":119367867,"user":{"login":"twangboy","id":9383935,"avatar_url":"https://avatars.githubusercontent.com/u/9383935?v=3","gravatar_id":"","url":"https://api.github.com/users/twangboy","html_url":"https://github.com/twangboy","followers_url":"https://api.github.com/users/twangboy/followers","following_url":"https://api.github.com/users/twangboy/following{/other_user}","gists_url":"https://api.github.com/users/twangboy/gists{/gist_id}","starred_url":"https://api.github.com/users/twangboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twangboy/subscriptions","organizations_url":"https://api.github.com/users/twangboy/orgs","repos_url":"https://api.github.com/users/twangboy/repos","events_url":"https://api.github.com/users/twangboy/events{/privacy}","received_events_url":"https://api.github.com/users/twangboy/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T22:57:41Z","updated_at":"2015-07-07T22:57:41Z","body":"2015.8 now supports jinja in the winrepo files. I get a different error however when I run the command locally on the develop branch:\r\n```\r\nsalt-call --local -l debug winrepo.genrepo\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Python27\\Scripts\\salt-call-script.py\", line 9, in <module>\r\n    load_entry_point('salt===2015.5.0-1711-g2b02315', 'console_scripts', 'salt-call')()\r\n  File \"c:\\salt-dev\\salt\\salt\\scripts.py\", line 224, in salt_call\r\n    client.run()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\call.py\", line 50, in run\r\n    caller.run()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\caller.py\", line 133, in run\r\n    ret = self.call()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\caller.py\", line 196, in call\r\n    ret['return'] = func(*args, **kwargs)\r\n  File \"c:\\salt-dev\\salt\\salt\\modules\\win_repo.py\", line 58, in genrepo\r\n    repo = __opts__['win_repo']\r\nKeyError: 'win_repo'\r\n```"}}