Skip to content

Commit 54f6a44

Browse files
committed
fix: always update the services
1 parent 4292b55 commit 54f6a44

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkg/commands/docker.go

+3-7
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,9 @@ func (c *DockerCommand) RefreshContainersAndServices(currentServices []*Service,
190190

191191
var services []*Service
192192
// we only need to get these services once because they won't change in the runtime of the program
193-
if currentServices != nil {
194-
services = currentServices
195-
} else {
196-
services, err = c.GetServices()
197-
if err != nil {
198-
return nil, nil, err
199-
}
193+
services, err = c.GetServices()
194+
if err != nil {
195+
return nil, nil, err
200196
}
201197

202198
c.assignContainersToServices(containers, services)

0 commit comments

Comments
 (0)