提交 0ea2d75f 编写于 作者: U utsavoza

Fix create app command

上级 7e216aad
...@@ -25,7 +25,7 @@ func RunAppCreate(appName string, esVersion string, category string) error { ...@@ -25,7 +25,7 @@ func RunAppCreate(appName string, esVersion string, category string) error {
spinner.Start() spinner.Start()
defer spinner.Stop() defer spinner.Stop()
// create app // create app
body := fmt.Sprintf(`{"category": %s, "es_version": %s}`, category, esVersion) body := fmt.Sprintf(`{"category": "%s", "es_version": "%s"}`, category, esVersion)
req, err := http.NewRequest("PUT", common.AccAPIURL+"/app/"+appName, strings.NewReader(body)) req, err := http.NewRequest("PUT", common.AccAPIURL+"/app/"+appName, strings.NewReader(body))
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册