Skip to content

Commit 71a7487

Browse files
zhangyueallencloud
authored andcommitted
fix: fix typo
Signed-off-by: zhangyue <[email protected]>
1 parent df58349 commit 71a7487

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

daemon/mgr/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func (mgr *ContainerManager) Restore(ctx context.Context) error {
281281
}
282282

283283
// recover the running or paused container.
284-
if !(c.IsRunning() || c.IsPaused()) {
284+
if !c.IsRunningOrPaused() {
285285
continue
286286
}
287287

daemon/mgr/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func NewNetworkManager(cfg *config.Config, store *meta.Store, ctrMgr ContainerMg
8585
&ContainerListOption{
8686
All: true,
8787
FilterFunc: func(c *Container) bool {
88-
return (c.IsRunning() || c.IsPaused()) && !isContainer(c.HostConfig.NetworkMode)
88+
return c.IsRunningOrPaused() && !isContainer(c.HostConfig.NetworkMode)
8989
}})
9090
if err != nil {
9191
logrus.Errorf("failed to new network manager: cannot get container list")

0 commit comments

Comments
 (0)