mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 01:38:43 +00:00
Fix bug where the same pointer is used. (#3059)
This commit is contained in:
parent
a3f8ec33f4
commit
c8d74d1a7f
1 changed files with 3 additions and 2 deletions
|
|
@ -1272,8 +1272,9 @@ func (s *Server) plugins() ([]*v1alpha1.ConfigManagementPlugin, error) {
|
|||
return nil, err
|
||||
}
|
||||
tools := make([]*v1alpha1.ConfigManagementPlugin, len(plugins))
|
||||
for i, plugin := range plugins {
|
||||
tools[i] = &plugin
|
||||
for i, p := range plugins {
|
||||
p := p
|
||||
tools[i] = &p
|
||||
}
|
||||
return tools, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue