Selaa lähdekoodia

add dry-run support of pause and unpause commands

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 2 vuotta sitten
vanhempi
sitoutus
6754c6b68a
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      pkg/api/dryrunclient.go

+ 2 - 2
pkg/api/dryrunclient.go

@@ -67,7 +67,7 @@ func (d *DryRunClient) ContainerKill(ctx context.Context, container, signal stri
 }
 
 func (d *DryRunClient) ContainerPause(ctx context.Context, container string) error {
-	return ErrNotImplemented
+	return nil
 }
 
 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
 }
 
 func (d *DryRunClient) ContainerUnpause(ctx context.Context, container string) error {
-	return ErrNotImplemented
+	return nil
 }
 
 func (d *DryRunClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, moby.ContainerPathStat, error) {