{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/26781","labels_url":"https://api.github.com/repos/saltstack/salt/issues/26781/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/26781/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/26781/events","html_url":"https://github.com/saltstack/salt/issues/26781","id":103997044,"number":26781,"title":"ret.get_fun get incompatible with ret.get_fun : Passed invalid arguments: get_fun()  ","user":{"login":"dove-young","id":606882,"avatar_url":"https://avatars.githubusercontent.com/u/606882?v=3","gravatar_id":"","url":"https://api.github.com/users/dove-young","html_url":"https://github.com/dove-young","followers_url":"https://api.github.com/users/dove-young/followers","following_url":"https://api.github.com/users/dove-young/following{/other_user}","gists_url":"https://api.github.com/users/dove-young/gists{/gist_id}","starred_url":"https://api.github.com/users/dove-young/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dove-young/subscriptions","organizations_url":"https://api.github.com/users/dove-young/orgs","repos_url":"https://api.github.com/users/dove-young/repos","events_url":"https://api.github.com/users/dove-young/events{/privacy}","received_events_url":"https://api.github.com/users/dove-young/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/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Low-Hanging%20Fruit","name":"Low-Hanging Fruit","color":"f7c6c7"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Returners","name":"Returners","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":2497,"closed_issues":2531,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-08-31T18:15:07Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-31T06:40:16Z","updated_at":"2015-08-31T18:16:07Z","closed_at":null,"body":"Here are 3 tries of ret.get_fun with etcd returner\r\n```console\r\n[root@ bin]# salt-call ret.get_fun etcd test.ping  --output=json\r\nPassed invalid arguments: get_fun() takes no arguments (1 given)\r\n[root@ bin]# salt-call ret.get_fun etcd   --output=json\r\nPassed invalid arguments: get_fun() takes exactly 2 arguments (1 given)\r\n[root@ bin]# salt-call ret.get_fun  --output=json\r\nPassed invalid arguments: get_fun() takes exactly 2 arguments (0 given)\r\n[root@ bin]# \r\n```\r\nSeems like  there is no way to get it work. \r\n\r\nAfter searching on source I discovered some interesting things. \r\n- Here is the code of <code>get_fun</code> in <code>ret.py</code>\r\n```python\r\ndef get_fun(returner, fun):\r\n    '''\r\n    Return info about last time fun was called on each minion\r\n    CLI Example:\r\n    .. code-block:: bash\r\n        salt '*' ret.get_fun mysql network.interfaces\r\n    '''\r\n    returners = salt.loader.returners(__opts__, __salt__)\r\n    return returners['{0}.get_fun'.format(returner)](fun)\r\n\r\n```\r\n\r\n- Here is the code of <code>get_fun</code> in <code>etcd_return.py\r\n</code>\r\n\r\n```python\r\ndef get_fun():\r\n    '''\r\n    Return a dict of the last function called for all minions\r\n    '''\r\n    ret = {}\r\n    client, path = _get_conn(__opts__)\r\n    items = client.get('/'.join((path, 'minions')))\r\n    for item in items.children:\r\n        comps = str(item.key).split('/')\r\n        ret[comps[-1]] = item.value\r\n    return ret\r\n```\r\nSeems like they do not work well together.\r\n\r\nHere is my test environment\r\n```\r\nsalt --version\r\nsalt 2015.5.3 (Lithium)\r\npython --version\r\nPython 2.7.10\r\nuname -a\r\nLinux 4.1.3-200.fc22.x86_64 #1 SMP Wed Jul 22 19:51:58 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/136451009","html_url":"https://github.com/saltstack/salt/issues/26781#issuecomment-136451009","issue_url":"https://api.github.com/repos/saltstack/salt/issues/26781","id":136451009,"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":"2015-08-31T18:16:07Z","updated_at":"2015-08-31T18:16:07Z","body":"@dove-young, thanks for the report."}}