{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/45348","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/45348/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/45348/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/45348/events","html_url":"https://github.com/saltstack/salt/issues/45348","id":287116872,"number":45348,"title":"env_vars in pip_state vs. env in cmd","user":{"login":"dhs-rec","id":7554110,"avatar_url":"https://avatars0.githubusercontent.com/u/7554110?v=4","gravatar_id":"","url":"https://api.github.com/users/dhs-rec","html_url":"https://github.com/dhs-rec","followers_url":"https://api.github.com/users/dhs-rec/followers","following_url":"https://api.github.com/users/dhs-rec/following{/other_user}","gists_url":"https://api.github.com/users/dhs-rec/gists{/gist_id}","starred_url":"https://api.github.com/users/dhs-rec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhs-rec/subscriptions","organizations_url":"https://api.github.com/users/dhs-rec/orgs","repos_url":"https://api.github.com/users/dhs-rec/repos","events_url":"https://api.github.com/users/dhs-rec/events{/privacy}","received_events_url":"https://api.github.com/users/dhs-rec/received_events","type":"User","site_admin":false},"labels":[{"id":67287385,"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0","default":false},{"id":204655,"url":"https://api.github.com/repos/saltstack/salt/labels/Feature","name":"Feature","color":"009800","default":false},{"id":41387450,"url":"https://api.github.com/repos/saltstack/salt/labels/State%20Module","name":"State Module","color":"006b75","default":false}],"state":"open","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://avatars0.githubusercontent.com/u/507599?v=4","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":2238,"closed_issues":7358,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2018-05-21T05:43:47Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-01-09T14:56:56Z","updated_at":"2018-05-21T13:02:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Description of Issue/Question\r\nWhy is there a difference in the way environment variables are specified in *pip.installed* and *cmd.run* state methods?\r\n\r\nExamples from the documentation:\r\n```\r\ndjango:\r\n  pip.installed:\r\n    - name: django_app\r\n    - env_vars:\r\n        CUSTOM_PATH: /opt/django_app\r\n        VERBOSE: True\r\n```\r\nvs.\r\n```\r\nscript-foo:\r\n  cmd.run:\r\n    - env:\r\n      - BATCH: 'yes'\r\n```\r\nDifferences are:\r\n1. env vs. env_vars\r\n2. dict vs. array\r\n\r\nCould this be streamlined, please, so that there's only one unique way of specifying environment variables (and everywhere else where I didn't spot it, of course)?\r\n\r\n### See also:\r\nhttps://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run\r\nhttps://docs.saltstack.com/en/latest/ref/states/all/salt.states.pip_state.html#salt.states.pip_state.installed\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/390647327","html_url":"https://github.com/saltstack/salt/issues/45348#issuecomment-390647327","issue_url":"https://api.github.com/repos/saltstack/salt/issues/45348","id":390647327,"user":{"login":"Ch3LL","id":6886822,"avatar_url":"https://avatars3.githubusercontent.com/u/6886822?v=4","gravatar_id":"","url":"https://api.github.com/users/Ch3LL","html_url":"https://github.com/Ch3LL","followers_url":"https://api.github.com/users/Ch3LL/followers","following_url":"https://api.github.com/users/Ch3LL/following{/other_user}","gists_url":"https://api.github.com/users/Ch3LL/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch3LL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch3LL/subscriptions","organizations_url":"https://api.github.com/users/Ch3LL/orgs","repos_url":"https://api.github.com/users/Ch3LL/repos","events_url":"https://api.github.com/users/Ch3LL/events{/privacy}","received_events_url":"https://api.github.com/users/Ch3LL/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T13:02:11Z","updated_at":"2018-05-21T13:02:11Z","author_association":"CONTRIBUTOR","body":"this is not currently assigned out to anyone due to other higher priority issues. Please feel free to try to send in a PR for this if you feel so inclined :)"}}
{"actor":{"display_login":"Ch3LL"}}