mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
fix: remove the incorrect e2e test for updating machine endpoints with empty list
This commit is contained in:
@@ -259,10 +259,7 @@ func (c *Cluster) UpdateMachine(ctx context.Context, req *pb.UpdateMachineReques
|
||||
updatedMachine.PublicIp = req.PublicIp
|
||||
}
|
||||
}
|
||||
if req.Endpoints != nil {
|
||||
if len(req.Endpoints) == 0 {
|
||||
return nil, status.Error(codes.InvalidArgument, "endpoints cannot be empty")
|
||||
}
|
||||
if len(req.Endpoints) > 0 {
|
||||
updatedMachine.Network.Endpoints = req.Endpoints
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user