Skip to content

Commit

Permalink
Merge pull request #10444 from glours/dry-run-down-support
Browse files Browse the repository at this point in the history
add dry-run support to down command
  • Loading branch information
glours committed Apr 7, 2023
2 parents eb933ad + 7fb8785 commit a99acd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/api/dryrunclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options moby.I
}

func (d *DryRunClient) ImageRemove(ctx context.Context, imageName string, options moby.ImageRemoveOptions) ([]moby.ImageDeleteResponseItem, error) {
return nil, ErrNotImplemented
return nil, nil
}

func (d *DryRunClient) NetworkConnect(ctx context.Context, networkName, container string, config *network.EndpointSettings) error {
Expand All @@ -229,15 +229,15 @@ func (d *DryRunClient) NetworkDisconnect(ctx context.Context, networkName, conta
}

func (d *DryRunClient) NetworkRemove(ctx context.Context, networkName string) error {
return ErrNotImplemented
return nil
}

func (d *DryRunClient) VolumeCreate(ctx context.Context, options volume.CreateOptions) (volume.Volume, error) {
return volume.Volume{}, ErrNotImplemented
}

func (d *DryRunClient) VolumeRemove(ctx context.Context, volumeID string, force bool) error {
return ErrNotImplemented
return nil
}

func (d *DryRunClient) ContainerExecCreate(ctx context.Context, container string, config moby.ExecConfig) (moby.IDResponse, error) {
Expand Down

0 comments on commit a99acd9

Please sign in to comment.