Commit 8280a1c9 authored by 陈子龙's avatar 陈子龙

自动化运维 立即执行 fix

parent 5cc366a4
......@@ -127,9 +127,8 @@ func ListTaskManage(c *gin.Context) {
func ExecScript(c *gin.Context) {
var (
req request.ExecScriptReq
err error
script string
req request.ExecScriptReq
err error
)
if err = c.ShouldBind(&req); err != nil {
SendJsonResponse(c, resp.InvalidParam.WithError(err), nil)
......@@ -221,7 +220,7 @@ func ExecScript(c *gin.Context) {
//req.Value = fmt.Sprintf("@/etc/ansible/ansible_extra.yml")
}
id, err := taskManageSvc.ExecScript(req, script)
id, err := taskManageSvc.ExecScript(req, taskManage.YamlDesc)
if err != nil {
SendJsonResponse(c, err, nil)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment