mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-06 14:07:50 +00:00
Merge pull request #17790 from TomSweeneyRedHat/dev/tsweeney/pick17755
[v4.4.1-rhel] Use append() to add elements to a slice (restore)
This commit is contained in:
commit
ffc2614b8e
1 changed files with 1 additions and 1 deletions
|
|
@ -673,7 +673,7 @@ func (ic *ContainerEngine) ContainerRestore(ctx context.Context, namesOrIds []st
|
|||
}
|
||||
ctrs = make([]*libpod.Container, 0, len(containers))
|
||||
for i := range containers {
|
||||
ctrs[i] = containers[i].Container
|
||||
ctrs = append(ctrs, containers[i].Container)
|
||||
}
|
||||
default:
|
||||
for _, nameOrID := range namesOrIds {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue