{"action":"closed","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/10330","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/10330/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/10330/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/10330/events","html_url":"https://github.com/saltstack/salt/issues/10330","id":27323187,"number":10330,"title":"exclude keyword not working","user":{"login":"jhenry82","id":2539113,"avatar_url":"https://avatars.githubusercontent.com/u/2539113?v=3","gravatar_id":"","url":"https://api.github.com/users/jhenry82","html_url":"https://github.com/jhenry82","followers_url":"https://api.github.com/users/jhenry82/followers","following_url":"https://api.github.com/users/jhenry82/following{/other_user}","gists_url":"https://api.github.com/users/jhenry82/gists{/gist_id}","starred_url":"https://api.github.com/users/jhenry82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhenry82/subscriptions","organizations_url":"https://api.github.com/users/jhenry82/orgs","repos_url":"https://api.github.com/users/jhenry82/repos","events_url":"https://api.github.com/users/jhenry82/events{/privacy}","received_events_url":"https://api.github.com/users/jhenry82/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/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"}],"state":"closed","locked":false,"assignee":null,"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":2907,"closed_issues":3377,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-02-26T15:01:55Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-02-11T03:28:45Z","updated_at":"2016-02-26T15:01:55Z","closed_at":"2016-02-26T15:01:55Z","body":"I'll happily get schooled if I'm not using it correctly, but trying to \"exclude\" an SLS doesn't seem to work. Here is a contrived example to illustrate what I'm seeing.\r\n\r\n**top.sls**\r\n```\r\nbase:\r\n  '*':\r\n    - basic\r\n```\r\n\r\n**basic.sls**\r\n```\r\ninclude:\r\n  - vim\r\n\r\nexclude:\r\n  - sls: vim\r\n\r\nvim-enhanced:\r\n  pkg.installed\r\n```\r\n\r\n**vim.sls**\r\n```\r\nvim-enhanced:\r\n  pkg.installed\r\n```\r\n\r\nMy understanding from the docs is that excluding vim.sls should entirely remove its contents from the highstate data before trying to evaluate it. But instead, I get the following error running a state.highstate:\r\n\r\n```\r\nlocal:\r\n    Data failed to compile:\r\n----------\r\n    Detected conflicting IDs, SLS IDs need to be globally unique.\r\n    The conflicting ID is \"vim-enhanced\" and is found in SLS \"base:basic\" and SLS \"base:vim\"\r\n```\r\n\r\n```\r\nsalt-call --versions-report\r\n           Salt: 0.17.5\r\n         Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)\r\n         Jinja2: unknown\r\n       M2Crypto: 0.20.2\r\n msgpack-python: 0.1.13\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.0.1\r\n         PyYAML: 3.10\r\n          PyZMQ: 2.2.0.1\r\n            ZMQ: 3.2.4\r\n```"}}