1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +02:00

api: remove name from edgegroupupdate payload validation (#588)

This commit is contained in:
Anthony Lapenna 2025-04-01 13:25:09 +13:00 committed by GitHub
parent 4066a70ea5
commit 1edc56c0ce

View file

@ -24,10 +24,6 @@ type edgeGroupUpdatePayload struct {
}
func (payload *edgeGroupUpdatePayload) Validate(r *http.Request) error {
if len(payload.Name) == 0 {
return errors.New("invalid Edge group name")
}
if payload.Dynamic && len(payload.TagIDs) == 0 {
return errors.New("tagIDs is mandatory for a dynamic Edge group")
}