diff --git a/webfleet/model/machine.go b/webfleet/model/machine.go index 33f8e93..5d6456c 100644 --- a/webfleet/model/machine.go +++ b/webfleet/model/machine.go @@ -96,12 +96,6 @@ func GetMachineInfo() []byte { } return execCmd("uname", "-m") }(), - PublicIP: func() string { - return "" - }(), - PrivateIP: func() string { - return "" - }(), IsOnline: func() bool { return true }(), diff --git a/webfleet/model/server_state.go b/webfleet/model/server_state.go index 45c50b7..2613282 100644 --- a/webfleet/model/server_state.go +++ b/webfleet/model/server_state.go @@ -21,8 +21,6 @@ type Server struct { Os string `json:"os"` Kernel string `json:"kernel"` Arch string `json:"arch"` - PublicIP string `json:"publicIP"` - PrivateIP string `json:"privateIP"` IsOnline bool `json:"isOnline"` } @@ -40,7 +38,7 @@ func (this *ServerManager) Add(tenant string, info map[string]interface{}) error this.db.Store(tenant, Server{ tenant, str(info["machineID"]), str(info["device"]), str(info["hostname"]), str(info["os"]), str(info["kernel"]), str(info["arch"]), - str(info["publicIp"]), str(info["privateIP"]), true, + true, }) return nil }