mirror of https://github.com/portainer/portainer
api: remove name from edgegroupupdate payload validation (#588)
parent
4066a70ea5
commit
1edc56c0ce
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue