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 {
|
if err != nil {
|
||||||
status = "unknown"
|
status = "unknown"
|
||||||
}
|
}
|
||||||
config, configErr := pod.Config()
|
infraID, _ := pod.InfraContainerID()
|
||||||
infraID := ""
|
|
||||||
if configErr == nil && config != nil {
|
|
||||||
infraID = config.InfraContainerID
|
|
||||||
}
|
|
||||||
result[i] = PodSummary{
|
result[i] = PodSummary{
|
||||||
ID: pod.ID(),
|
ID: pod.ID(),
|
||||||
Name: pod.Name(),
|
Name: pod.Name(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue