From 341f173a68a303ad7e5beaa27b366ff88198f6f0 Mon Sep 17 00:00:00 2001 From: christophe-duc Date: Wed, 7 Jan 2026 18:45:06 -0400 Subject: [PATCH] fixed a problem on linux build --- pkg/commands/runtime_libpod.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/commands/runtime_libpod.go b/pkg/commands/runtime_libpod.go index b09e1d4b..a92b17c5 100644 --- a/pkg/commands/runtime_libpod.go +++ b/pkg/commands/runtime_libpod.go @@ -323,11 +323,7 @@ func (r *LibpodRuntime) ListPods(ctx context.Context) ([]PodSummary, error) { if err != nil { status = "unknown" } - config, configErr := pod.Config() - infraID := "" - if configErr == nil && config != nil { - infraID = config.InfraContainerID - } + infraID, _ := pod.InfraContainerID() result[i] = PodSummary{ ID: pod.ID(), Name: pod.Name(),