From c90a1be0e5b738fcdab35743d5119feab65f5a4b Mon Sep 17 00:00:00 2001 From: matias-portainer <104775949+matias-portainer@users.noreply.github.com> Date: Mon, 5 Jun 2023 10:18:34 -0300 Subject: [PATCH] fix(edgegroups): allow edge groups with no environments or tags EE-4927 (#8439) --- api/http/handler/edgegroups/edgegroup_update.go | 4 ---- app/edge/components/group-form/groupForm.html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/api/http/handler/edgegroups/edgegroup_update.go b/api/http/handler/edgegroups/edgegroup_update.go index 0cffc1201..4596701ee 100644 --- a/api/http/handler/edgegroups/edgegroup_update.go +++ b/api/http/handler/edgegroups/edgegroup_update.go @@ -32,10 +32,6 @@ func (payload *edgeGroupUpdatePayload) Validate(r *http.Request) error { return errors.New("tagIDs is mandatory for a dynamic Edge group") } - if !payload.Dynamic && len(payload.Endpoints) == 0 { - return errors.New("environments is mandatory for a static Edge group") - } - return nil } diff --git a/app/edge/components/group-form/groupForm.html b/app/edge/components/group-form/groupForm.html index dd5ff109a..6da64b7a8 100644 --- a/app/edge/components/group-form/groupForm.html +++ b/app/edge/components/group-form/groupForm.html @@ -86,7 +86,7 @@