Commit f320e6d8 authored by 陈子龙's avatar 陈子龙

Merge branch 'dev-czl' into dev

parents ee190367 8280a1c9
...@@ -129,7 +129,6 @@ func ExecScript(c *gin.Context) { ...@@ -129,7 +129,6 @@ func ExecScript(c *gin.Context) {
var ( var (
req request.ExecScriptReq req request.ExecScriptReq
err error err error
script string
) )
if err = c.ShouldBind(&req); err != nil { if err = c.ShouldBind(&req); err != nil {
SendJsonResponse(c, resp.InvalidParam.WithError(err), nil) SendJsonResponse(c, resp.InvalidParam.WithError(err), nil)
...@@ -221,7 +220,7 @@ func ExecScript(c *gin.Context) { ...@@ -221,7 +220,7 @@ func ExecScript(c *gin.Context) {
//req.Value = fmt.Sprintf("@/etc/ansible/ansible_extra.yml") //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 { if err != nil {
SendJsonResponse(c, err, nil) SendJsonResponse(c, err, nil)
return 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