fix: remove the incorrect e2e test for updating machine endpoints with empty list

This commit is contained in:
Pasha Sviderski
2026-03-04 14:04:46 +10:00
parent 3c435434a8
commit 1f328e99d5
2 changed files with 1 additions and 23 deletions
+1 -4
View File
@@ -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
}