Merge branch 'master' of code.goodrain.com:goodrain/rainbond

This commit is contained in:
ysicing 2017-11-27 16:32:58 +08:00
commit ba35e48c81
2 changed files with 1 additions and 3 deletions

View File

@ -58,7 +58,7 @@ type NodeInterface interface {
func (t *Node)Label(label map[string]string) {
body,_:=json.Marshal(label)
_,_,err:=nodeServer.Request("nodes/"+t.Id+"/labels","POST",body)
_,_,err:=nodeServer.Request("/nodes/"+t.Id+"/labels","PUT",body)
if err != nil {
logrus.Errorf("error details %s",err.Error())
}

View File

@ -24,8 +24,6 @@ import (
"github.com/jinzhu/gorm"
"github.com/Sirupsen/logrus"
"encoding/json"
"fmt"
)