mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
fix: always update the services
This commit is contained in:
parent
4292b55e12
commit
54f6a445b2
1 changed files with 3 additions and 7 deletions
|
|
@ -190,13 +190,9 @@ func (c *DockerCommand) RefreshContainersAndServices(currentServices []*Service,
|
||||||
|
|
||||||
var services []*Service
|
var services []*Service
|
||||||
// we only need to get these services once because they won't change in the runtime of the program
|
// we only need to get these services once because they won't change in the runtime of the program
|
||||||
if currentServices != nil {
|
services, err = c.GetServices()
|
||||||
services = currentServices
|
if err != nil {
|
||||||
} else {
|
return nil, nil, err
|
||||||
services, err = c.GetServices()
|
|
||||||
if err != nil {
|
|
||||||
return nil, nil, err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c.assignContainersToServices(containers, services)
|
c.assignContainersToServices(containers, services)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue