1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(tags): add missing error handling EE-4622 (#8102)

This commit is contained in:
andres-portainer 2022-11-24 14:16:04 -03:00 committed by GitHub
parent e26a607d28
commit 9dfac98a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 7 deletions

View file

@ -91,7 +91,7 @@ func (handler *Handler) endpointGroupCreate(w http.ResponseWriter, r *http.Reque
}
for _, tagID := range endpointGroup.TagIDs {
handler.DataStore.Tag().UpdateTagFunc(tagID, func(tag *portainer.Tag) {
err = handler.DataStore.Tag().UpdateTagFunc(tagID, func(tag *portainer.Tag) {
tag.EndpointGroups[endpointGroup.ID] = true
})