chore(edgegroups): rename decoratedEdgeGroup property EE-5501 (#9212)

This commit is contained in:
matias-portainer
2023-07-19 12:28:17 -03:00
committed by GitHub
parent 88da28694c
commit b5c5df798a
2 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ import (
type decoratedEdgeGroup struct {
portainer.EdgeGroup
HasEdgeStack bool `json:"HasEdgeStack"`
HasEdgeGroup bool `json:"HasEdgeGroup"`
HasEdgeJob bool `json:"HasEdgeJob"`
EndpointTypes []portainer.EndpointType
}
@@ -99,7 +99,7 @@ func getEdgeGroupList(tx dataservices.DataStoreTx) ([]decoratedEdgeGroup, error)
edgeGroup.EndpointTypes = endpointTypes
edgeGroup.HasEdgeStack = usedEdgeGroups[edgeGroup.ID]
edgeGroup.HasEdgeGroup = usedByEdgeJob
edgeGroup.HasEdgeJob = usedByEdgeJob
decoratedEdgeGroups = append(decoratedEdgeGroups, edgeGroup)
}