mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 04:46:45 +08:00
Update ext_client.go
Removed error loggin
This commit is contained in:
parent
79369f33e4
commit
c4577e1769
1 changed files with 2 additions and 6 deletions
|
@ -264,12 +264,8 @@ func createExtClient(w http.ResponseWriter, r *http.Request) {
|
||||||
var CustomExtClient models.CustomExtClient
|
var CustomExtClient models.CustomExtClient
|
||||||
|
|
||||||
err := json.NewDecoder(r.Body).Decode(&CustomExtClient);
|
err := json.NewDecoder(r.Body).Decode(&CustomExtClient);
|
||||||
|
|
||||||
if err != nil {
|
if err == nil { extclient.ClientID = CustomExtClient.ClientID }
|
||||||
logger.Log(1, "error creating CustomExtClient"+err.Error())
|
|
||||||
} else {
|
|
||||||
extclient.ClientID = CustomExtClient.ClientID
|
|
||||||
}
|
|
||||||
|
|
||||||
extclient.Network = networkName
|
extclient.Network = networkName
|
||||||
extclient.IngressGatewayID = nodeid
|
extclient.IngressGatewayID = nodeid
|
||||||
|
|
Loading…
Add table
Reference in a new issue