mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
Merge branch 'master' of code.goodrain.com:goodrain/rainbond
This commit is contained in:
commit
ba35e48c81
@ -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())
|
||||
}
|
||||
|
@ -24,8 +24,6 @@ import (
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
"github.com/Sirupsen/logrus"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user