Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: zhangyue <zy675793960@yeah.net>
  • Loading branch information
zhangyue authored and allencloud committed Feb 18, 2019
1 parent df58349 commit 71a7487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/mgr/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (mgr *ContainerManager) Restore(ctx context.Context) error {
}

// recover the running or paused container.
if !(c.IsRunning() || c.IsPaused()) {
if !c.IsRunningOrPaused() {
continue
}

Expand Down
2 changes: 1 addition & 1 deletion daemon/mgr/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func NewNetworkManager(cfg *config.Config, store *meta.Store, ctrMgr ContainerMg
&ContainerListOption{
All: true,
FilterFunc: func(c *Container) bool {
return (c.IsRunning() || c.IsPaused()) && !isContainer(c.HostConfig.NetworkMode)
return c.IsRunningOrPaused() && !isContainer(c.HostConfig.NetworkMode)
}})
if err != nil {
logrus.Errorf("failed to new network manager: cannot get container list")
Expand Down

0 comments on commit 71a7487

Please sign in to comment.