{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/30856","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/30856/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/30856/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/30856/events","html_url":"https://github.com/saltstack/salt/issues/30856","id":131009641,"number":30856,"title":"[salt-ssh] Custom pillar data present in pillar.items, but not in custom execution module through __pillar__ dictionary","user":{"login":"adrianhj","id":1008700,"avatar_url":"https://avatars.githubusercontent.com/u/1008700?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianhj","html_url":"https://github.com/adrianhj","followers_url":"https://api.github.com/users/adrianhj/followers","following_url":"https://api.github.com/users/adrianhj/following{/other_user}","gists_url":"https://api.github.com/users/adrianhj/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianhj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianhj/subscriptions","organizations_url":"https://api.github.com/users/adrianhj/orgs","repos_url":"https://api.github.com/users/adrianhj/repos","events_url":"https://api.github.com/users/adrianhj/events{/privacy}","received_events_url":"https://api.github.com/users/adrianhj/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/P3","name":"P3","color":"0a3d77"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Pillar","name":"Pillar","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"006b75"}],"state":"open","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":2926,"closed_issues":3411,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-03-07T22:52:08Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-02-03T12:28:58Z","updated_at":"2016-03-07T23:01:31Z","closed_at":null,"body":"(Encountered in version 2015.8.3)\r\n\r\nHello!\r\n\r\nI am running into an interesting issue using salt-ssh to execute custom modules relying on pillar data.\r\n\r\nWhen querying for the target's pillar using: `salt-ssh '*' pillar.items` the custom pillar entries are present, however within a custom execution module the `__pillar__` entry only contains the default set of master pillar entries, none of the custom entries.\r\n\r\nChecking the `pillar.json` that is deployed via salt-ssh to the target in `salt_state.tgz` the full pillar is visible.\r\n\r\nThe custom module that I have resulted to testing with whilst attempting to debug is:\r\n\r\n```\r\ndef test():\r\n    return __pillar__\r\n```\r\n\r\nHas anyone ran into anything similar? I can find some open issues regarding salt-ssh and pillars but most of these seem to be in regards to failing to render the pillar at all."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/193494480","html_url":"https://github.com/saltstack/salt/issues/30856#issuecomment-193494480","issue_url":"https://api.github.com/repos/saltstack/salt/issues/30856","id":193494480,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T23:01:31Z","updated_at":"2016-03-07T23:01:31Z","body":"May be related to #28503."}}