{"action":"created","issue":{"url":"https://api.github.com/repos/jumpserver/jumpserver/issues/1102","repository_url":"https://api.github.com/repos/jumpserver/jumpserver","labels_url":"https://api.github.com/repos/jumpserver/jumpserver/issues/1102/labels{/name}","comments_url":"https://api.github.com/repos/jumpserver/jumpserver/issues/1102/comments","events_url":"https://api.github.com/repos/jumpserver/jumpserver/issues/1102/events","html_url":"https://github.com/jumpserver/jumpserver/issues/1102","id":307219815,"number":1102,"title":"执行ansible命令，有时会没有返回值","user":{"login":"mgdsxhy","id":6211830,"avatar_url":"https://avatars1.githubusercontent.com/u/6211830?v=4","gravatar_id":"","url":"https://api.github.com/users/mgdsxhy","html_url":"https://github.com/mgdsxhy","followers_url":"https://api.github.com/users/mgdsxhy/followers","following_url":"https://api.github.com/users/mgdsxhy/following{/other_user}","gists_url":"https://api.github.com/users/mgdsxhy/gists{/gist_id}","starred_url":"https://api.github.com/users/mgdsxhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgdsxhy/subscriptions","organizations_url":"https://api.github.com/users/mgdsxhy/orgs","repos_url":"https://api.github.com/users/mgdsxhy/repos","events_url":"https://api.github.com/users/mgdsxhy/events{/privacy}","received_events_url":"https://api.github.com/users/mgdsxhy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-21T12:12:16Z","updated_at":"2018-03-22T03:09:25Z","closed_at":"2018-03-22T03:09:25Z","author_association":"NONE","body":"[简述你的问题]\r\n使用 ops/ansible 作了一个命令执行，有时候执行返回正常，但有时返回空（传入的主机信息和命令是相同的）\r\n\r\n\r\n##### 使用版本\r\n[请提供你使用的Jumpserver版本 0.3.2 或 0.5.0]\r\nv1.0\r\n##### 问题复现步骤\r\n1. [步骤1]\r\n2. [步骤2]\r\n\r\n##### 具体表现[截图可能会更好些,最好能截全]\r\n\r\nexshell.py文件在ops/ansible文件夹下，内容为：\r\n![image](https://user-images.githubusercontent.com/6211830/37709826-6c257064-2d46-11e8-91b3-788ac74f8b2a.png)\r\n\r\nviews.py相关代码：\r\n![image](https://user-images.githubusercontent.com/6211830/37709783-409e4588-2d46-11e8-9dba-537b07c80da6.png)\r\n\r\n\r\n##### 其他\r\n前端代码就不放了，调用肯定是正常的。就是在 res_data = res.results_command 这里有时会没有值，不知道为什么\r\n\r\n[注:] 完成后请关闭 issue\r\n"},"comment":{"url":"https://api.github.com/repos/jumpserver/jumpserver/issues/comments/375165011","html_url":"https://github.com/jumpserver/jumpserver/issues/1102#issuecomment-375165011","issue_url":"https://api.github.com/repos/jumpserver/jumpserver/issues/1102","id":375165011,"user":{"login":"mgdsxhy","id":6211830,"avatar_url":"https://avatars1.githubusercontent.com/u/6211830?v=4","gravatar_id":"","url":"https://api.github.com/users/mgdsxhy","html_url":"https://github.com/mgdsxhy","followers_url":"https://api.github.com/users/mgdsxhy/followers","following_url":"https://api.github.com/users/mgdsxhy/following{/other_user}","gists_url":"https://api.github.com/users/mgdsxhy/gists{/gist_id}","starred_url":"https://api.github.com/users/mgdsxhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgdsxhy/subscriptions","organizations_url":"https://api.github.com/users/mgdsxhy/orgs","repos_url":"https://api.github.com/users/mgdsxhy/repos","events_url":"https://api.github.com/users/mgdsxhy/events{/privacy}","received_events_url":"https://api.github.com/users/mgdsxhy/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T03:09:25Z","updated_at":"2018-03-22T03:09:25Z","author_association":"NONE","body":"已解决！"}}
{"actor":{"display_login":"mgdsxhy"}}