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:
parent
4066a70ea5
commit
1edc56c0ce
1 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue