{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20947","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20947/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20947/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20947/events","html_url":"https://github.com/saltstack/salt/issues/20947","id":58653150,"number":20947,"title":"Duplicate entry in top file gives unhelpful error message","user":{"login":"nicholascapo","id":3730819,"avatar_url":"https://avatars.githubusercontent.com/u/3730819?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholascapo","html_url":"https://github.com/nicholascapo","followers_url":"https://api.github.com/users/nicholascapo/followers","following_url":"https://api.github.com/users/nicholascapo/following{/other_user}","gists_url":"https://api.github.com/users/nicholascapo/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholascapo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholascapo/subscriptions","organizations_url":"https://api.github.com/users/nicholascapo/orgs","repos_url":"https://api.github.com/users/nicholascapo/repos","events_url":"https://api.github.com/users/nicholascapo/events{/privacy}","received_events_url":"https://api.github.com/users/nicholascapo/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":67287385,"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0","default":false},{"id":43090649,"url":"https://api.github.com/repos/saltstack/salt/labels/Help%20Wanted","name":"Help Wanted","color":"009800","default":false},{"id":41388135,"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143","default":false},{"id":194766324,"url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39","default":false},{"id":41387450,"url":"https://api.github.com/repos/saltstack/salt/labels/State%20Module","name":"State Module","color":"006b75","default":false}],"state":"closed","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://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":3286,"closed_issues":4224,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-12-19T16:28:06Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-23T21:40:38Z","updated_at":"2016-12-19T16:31:16Z","closed_at":"2015-10-02T19:42:29Z","body":"While cleaning up our top.sls I inadvertently created two identical entries.\nThis causes an unhelpful error message when running state.highstate on any minion.\n\n``` yaml\n## Version Report:\nSalt: 2014.7.1\nPython: 2.7.3 (default, Mar 13 2014, 11:03:55)\nJinja2: 2.6\nM2Crypto: 0.21.1\nmsgpack-python: 0.1.10\nmsgpack-pure: Not Installed\npycrypto: 2.6\nlibnacl: Not Installed\nPyYAML: 3.10\nioflo: Not Installed\nPyZMQ: 13.1.0\nRAET: Not Installed\nZMQ: 3.2.3\nMako: 0.7.0\n```\n\n```\n## Example:\n### On Master\n    $ cat salt/top.sls \n    base:\n      '*':\n      '*':\n```\n\n```\n### On Any Minion\n    $ sudo salt-call state.highstate -l debug\n    [...]\n    [DEBUG   ] Fetching file from saltenv 'base', ** attempting ** 'salt://top.sls'\n    [INFO    ] Fetching file from saltenv 'base', ** done ** 'top.sls'\n    [DEBUG   ] Jinja search path: ['/srv/salt']\n    [DEBUG   ] Rendered data from file: /var/cache/salt/minion/files/base/top.sls:\n    base:\n      '*':\n      '*':\n\n    Passed invalid arguments: object of type 'ConstructorError' has no len()\n    Traceback (most recent call last):\n      File \"/usr/lib/python2.7/dist-packages/salt/cli/caller.py\", line 129, in call\n        ret['return'] = func(*args, **kwargs)\n      File \"/usr/lib/python2.7/dist-packages/salt/modules/state.py\", line 344, in highstate\n        serial.dump(ret, fp_)\n      File \"/usr/lib/python2.7/dist-packages/salt/payload.py\", line 149, in dump\n        fn_.write(self.dumps(msg))\n      File \"/usr/lib/python2.7/dist-packages/salt/payload.py\", line 139, in dumps\n        return msgpack.dumps(odict_encoder(msg))\n      File \"_msgpack.pyx\", line 169, in msgpack._msgpack.packb (msgpack/_msgpack.c:2384)\n      File \"_msgpack.pyx\", line 153, in msgpack._msgpack.Packer.pack (msgpack/_msgpack.c:2020)\n      File \"_msgpack.pyx\", line 136, in msgpack._msgpack.Packer._pack (msgpack/_msgpack.c:1761)\n      File \"_msgpack.pyx\", line 136, in msgpack._msgpack.Packer._pack (msgpack/_msgpack.c:1761)\n      File \"_msgpack.pyx\", line 139, in msgpack._msgpack.Packer._pack (msgpack/_msgpack.c:1803)\n    TypeError: object of type 'ConstructorError' has no len()\n```\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/268009951","html_url":"https://github.com/saltstack/salt/issues/20947#issuecomment-268009951","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20947","id":268009951,"user":{"login":"Calygos","id":22937734,"avatar_url":"https://avatars.githubusercontent.com/u/22937734?v=3","gravatar_id":"","url":"https://api.github.com/users/Calygos","html_url":"https://github.com/Calygos","followers_url":"https://api.github.com/users/Calygos/followers","following_url":"https://api.github.com/users/Calygos/following{/other_user}","gists_url":"https://api.github.com/users/Calygos/gists{/gist_id}","starred_url":"https://api.github.com/users/Calygos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calygos/subscriptions","organizations_url":"https://api.github.com/users/Calygos/orgs","repos_url":"https://api.github.com/users/Calygos/repos","events_url":"https://api.github.com/users/Calygos/events{/privacy}","received_events_url":"https://api.github.com/users/Calygos/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T16:31:16Z","updated_at":"2016-12-19T16:31:16Z","body":"I just ran into this. Apparently it's still a thing almost two years later?\r\n"}}
{"actor":{"display_login":"Calygos"}}