{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/34145","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/34145/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/34145/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/34145/events","html_url":"https://github.com/saltstack/salt/issues/34145","id":161263909,"number":34145,"title":"Missing __salt__ dunder when executing from __utils__","user":{"login":"carlpett","id":214867,"avatar_url":"https://avatars.githubusercontent.com/u/214867?v=3","gravatar_id":"","url":"https://api.github.com/users/carlpett","html_url":"https://github.com/carlpett","followers_url":"https://api.github.com/users/carlpett/followers","following_url":"https://api.github.com/users/carlpett/following{/other_user}","gists_url":"https://api.github.com/users/carlpett/gists{/gist_id}","starred_url":"https://api.github.com/users/carlpett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlpett/subscriptions","organizations_url":"https://api.github.com/users/carlpett/orgs","repos_url":"https://api.github.com/users/carlpett/repos","events_url":"https://api.github.com/users/carlpett/events{/privacy}","received_events_url":"https://api.github.com/users/carlpett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":448,"closed_issues":891,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-06-21T18:38:27Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-20T18:36:46Z","updated_at":"2016-06-21T19:15:36Z","closed_at":null,"body":"### Description of Issue/Question\r\nI have a utils package that I'm calling from both a state and an execution module with `__utils__['my-util.some-function'](parameters)`. I'm unable to access the `__salt__` dunder in this context. \r\n\r\n### Versions Report\r\n```\r\nSalt Version:\r\n           Salt: 2015.8.8.2\r\n\r\nDependency Versions:\r\n         Jinja2: 2.7.2\r\n       M2Crypto: 0.21.1\r\n           Mako: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.3.1\r\n         Python: 2.7.5 (default, Nov 20 2015, 02:00:19)\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 3.2.5\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: Not Installed\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.7\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n   python-gnupg: Not Installed\r\n          smmap: 0.8.1\r\n        timelib: Not Installed\r\n\r\nSystem Versions:\r\n           dist: centos 7.2.1511 Core\r\n        machine: x86_64\r\n        release: 3.10.0-327.el7.x86_64\r\n         system: CentOS Linux 7.2.1511 Core\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/227542516","html_url":"https://github.com/saltstack/salt/issues/34145#issuecomment-227542516","issue_url":"https://api.github.com/repos/saltstack/salt/issues/34145","id":227542516,"user":{"login":"carlpett","id":214867,"avatar_url":"https://avatars.githubusercontent.com/u/214867?v=3","gravatar_id":"","url":"https://api.github.com/users/carlpett","html_url":"https://github.com/carlpett","followers_url":"https://api.github.com/users/carlpett/followers","following_url":"https://api.github.com/users/carlpett/following{/other_user}","gists_url":"https://api.github.com/users/carlpett/gists{/gist_id}","starred_url":"https://api.github.com/users/carlpett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlpett/subscriptions","organizations_url":"https://api.github.com/users/carlpett/orgs","repos_url":"https://api.github.com/users/carlpett/repos","events_url":"https://api.github.com/users/carlpett/events{/privacy}","received_events_url":"https://api.github.com/users/carlpett/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T19:15:36Z","updated_at":"2016-06-21T19:15:36Z","body":"It worked fine to use `__salt__` by following the instructions from your first link (thanks again!), so at least some times it is possible. Not sure if there are any tricky edge cases and that's why it is not loaded by default, or if it is an oversight? "}}
{"actor":{"display_login":"carlpett"}}