{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/40984","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/40984/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/40984/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/40984/events","html_url":"https://github.com/saltstack/salt/issues/40984","id":225433882,"number":40984,"title":"Feature request: add kwargs to reactor caller","user":{"login":"ezh","id":118212,"avatar_url":"https://avatars0.githubusercontent.com/u/118212?v=3","gravatar_id":"","url":"https://api.github.com/users/ezh","html_url":"https://github.com/ezh","followers_url":"https://api.github.com/users/ezh/followers","following_url":"https://api.github.com/users/ezh/following{/other_user}","gists_url":"https://api.github.com/users/ezh/gists{/gist_id}","starred_url":"https://api.github.com/users/ezh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezh/subscriptions","organizations_url":"https://api.github.com/users/ezh/orgs","repos_url":"https://api.github.com/users/ezh/repos","events_url":"https://api.github.com/users/ezh/events{/privacy}","received_events_url":"https://api.github.com/users/ezh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-01T13:23:50Z","updated_at":"2017-05-01T13:35:37Z","closed_at":null,"body":"### Description of Issue/Question\r\n\r\nAs described in https://docs.saltstack.com/en/develop/topics/reactor/index.html we may call local function with:\r\n\r\n```\r\nclean_tmp:\r\n  caller.cmd.run:\r\n    - arg:\r\n      - rm -rf /tmp/*\r\n```\r\n\r\nBut this is very tough because there are a lot of commands with long arguments list. cmd.run have for example such list of arguments:\r\n```\r\ndef run(cmd,\r\n         cwd=None,\r\n         stdin=None,\r\n         runas=None,\r\n         shell=DEFAULT_SHELL,\r\n         python_shell=None,\r\n         env=None,\r\n         clean_env=False,\r\n         template=None,\r\n         rstrip=True,\r\n         umask=None,\r\n         output_loglevel='debug',\r\n         log_callback=None,\r\n         timeout=None,\r\n         reset_system_locale=True,\r\n         ignore_retcode=False,\r\n         saltenv='base',\r\n         use_vt=False,\r\n         bg=False,\r\n         password=None,\r\n         encoded_cmd=False,\r\n          **kwargs):\r\n```\r\n\r\nIf I want to set `use_vt` value then I must provide all previous arguments. Terrible.\r\n\r\nI propose to use `kwargs` options as other statement used.\r\n\r\n```\r\nlocal_salt_call:\r\n  caller.cmd.run:\r\n    - args:\r\n      - \"mkdir test\"\r\n    - kwargs:\r\n        cwd: /tmp\r\n```\r\n\r\n### Versions Report\r\n\r\n```\r\nSalt Version:\r\n           Salt: 2016.11.0-1255-gc0bcecf\r\n\r\nDependency Versions:\r\n           cffi: 1.9.1\r\n       cherrypy: Not Installed\r\n       dateutil: 2.6.0\r\n      docker-py: 1.10.6\r\n          gitdb: 2.0.0\r\n      gitpython: 2.1.3\r\n          ioflo: Not Installed\r\n         Jinja2: 2.9.5\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.8\r\n   mysql-python: Not Installed\r\n      pycparser: 2.17\r\n       pycrypto: 2.6.1\r\n   pycryptodome: Not Installed\r\n         pygit2: Not Installed\r\n         Python: 3.4.5 (default, Jan 28 2017, 19:37:16)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.12\r\n          PyZMQ: 16.0.2\r\n           RAET: Not Installed\r\n          smmap: 2.0.1\r\n        timelib: Not Installed\r\n        Tornado: 4.4.2\r\n            ZMQ: 4.1.6\r\n\r\nSystem Versions:\r\n           dist: gentoo 2.3\r\n        machine: x86_64\r\n        release: 4.9.9-gentoo\r\n         system: Linux\r\n        version: Gentoo Base System 2.3\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/298334396","html_url":"https://github.com/saltstack/salt/issues/40984#issuecomment-298334396","issue_url":"https://api.github.com/repos/saltstack/salt/issues/40984","id":298334396,"user":{"login":"ezh","id":118212,"avatar_url":"https://avatars0.githubusercontent.com/u/118212?v=3","gravatar_id":"","url":"https://api.github.com/users/ezh","html_url":"https://github.com/ezh","followers_url":"https://api.github.com/users/ezh/followers","following_url":"https://api.github.com/users/ezh/following{/other_user}","gists_url":"https://api.github.com/users/ezh/gists{/gist_id}","starred_url":"https://api.github.com/users/ezh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezh/subscriptions","organizations_url":"https://api.github.com/users/ezh/orgs","repos_url":"https://api.github.com/users/ezh/repos","events_url":"https://api.github.com/users/ezh/events{/privacy}","received_events_url":"https://api.github.com/users/ezh/received_events","type":"User","site_admin":false},"created_at":"2017-05-01T13:35:37Z","updated_at":"2017-05-01T13:35:37Z","body":"PR will be available shortly"}}
{"actor":{"display_login":"ezh"}}