diff --git a/logic/gateway.go b/logic/gateway.go index 2637f4f1..899af5b2 100644 --- a/logic/gateway.go +++ b/logic/gateway.go @@ -190,7 +190,10 @@ func DeleteIngressGateway(networkName string, nodeid string) (models.Node, bool, // DeleteGatewayExtClients - deletes ext clients based on gateway (mac) of ingress node and network func DeleteGatewayExtClients(gatewayID string, networkName string) error { currentExtClients, err := GetNetworkExtClients(networkName) - if err != nil && !database.IsEmptyRecord(err) { + if database.IsEmptyRecord(err) { + return nil + } + if err != nil { return err } for _, extClient := range currentExtClients {