mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +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 {
|
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 {
|
if payload.Dynamic && len(payload.TagIDs) == 0 {
|
||||||
return errors.New("tagIDs is mandatory for a dynamic Edge group")
|
return errors.New("tagIDs is mandatory for a dynamic Edge group")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue