Skip to content

Commit

Permalink
Fix pause/unpause by only applying to running containers
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
  • Loading branch information
ulyssessouza authored and ndeloof committed Feb 16, 2022
1 parent 10ca031 commit 2eeed84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/compose/pause.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (s *composeService) Pause(ctx context.Context, project string, options api.
}

func (s *composeService) pause(ctx context.Context, project string, options api.PauseOptions) error {
containers, err := s.getContainers(ctx, project, oneOffExclude, true, options.Services...)
containers, err := s.getContainers(ctx, project, oneOffExclude, false, options.Services...)
if err != nil {
return err
}
Expand Down Expand Up @@ -61,7 +61,7 @@ func (s *composeService) UnPause(ctx context.Context, project string, options ap
}

func (s *composeService) unPause(ctx context.Context, project string, options api.PauseOptions) error {
containers, err := s.getContainers(ctx, project, oneOffExclude, true, options.Services...)
containers, err := s.getContainers(ctx, project, oneOffExclude, false, options.Services...)
if err != nil {
return err
}
Expand Down

0 comments on commit 2eeed84

Please sign in to comment.