mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
fixed a problem on linux build
This commit is contained in:
parent
0730120daa
commit
341f173a68
1 changed files with 1 additions and 5 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue