Skip to content

Commit 6754c6b

Browse files
committed
add dry-run support of pause and unpause commands
Signed-off-by: Guillaume Lours <[email protected]>
1 parent a93f09e commit 6754c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/api/dryrunclient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (d *DryRunClient) ContainerKill(ctx context.Context, container, signal stri
6767
}
6868

6969
func (d *DryRunClient) ContainerPause(ctx context.Context, container string) error {
70-
return ErrNotImplemented
70+
return nil
7171
}
7272

7373
func (d *DryRunClient) ContainerRemove(ctx context.Context, container string, options moby.ContainerRemoveOptions) error {
@@ -91,7 +91,7 @@ func (d *DryRunClient) ContainerStop(ctx context.Context, container string, opti
9191
}
9292

9393
func (d *DryRunClient) ContainerUnpause(ctx context.Context, container string) error {
94-
return ErrNotImplemented
94+
return nil
9595
}
9696

9797
func (d *DryRunClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, moby.ContainerPathStat, error) {

0 commit comments

Comments
 (0)