mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
chore(docker): clean up the code EE-7325 (#11997)
This commit is contained in:
parent
faca64442f
commit
340830d121
8 changed files with 280 additions and 254 deletions
|
@ -17,12 +17,15 @@ func init() {
|
|||
|
||||
func (transport *Transport) applyPortainerContainers(resources []any) ([]any, error) {
|
||||
decoratedResourceData := make([]any, 0)
|
||||
|
||||
for _, resource := range resources {
|
||||
responseObject, ok := resource.(map[string]any)
|
||||
if !ok {
|
||||
decoratedResourceData = append(decoratedResourceData, resource)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
responseObject, _ = transport.applyPortainerContainer(responseObject)
|
||||
decoratedResourceData = append(decoratedResourceData, responseObject)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue