Skip to content

Commit f1dc11f

Browse files
authored
fix: remove usage of deprecated DockerCli.Apply() (#1640)
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it The PR removes the usage of the deprecated `DockerCli.Apply`. See also: docker/cli#6497 #### Which issue(s) this PR is related to This PR is a prerequisite for #1634. Signed-off-by: Ilya Khandamirov <ilya.khandamirov@sap.com>
1 parent df8d01b commit f1dc11f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/ocm/tools/toi/drivers/docker/driver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ func (d *Driver) initializeDockerCli() (command.Cli, error) {
206206
}
207207

208208
if d.config[OptionQuiet] == "1" {
209-
err = cli.Apply(command.WithCombinedStreams(io.Discard))
209+
op := command.WithCombinedStreams(io.Discard)
210+
err = op(cli)
210211
if err != nil {
211212
return nil, err
212213
}

0 commit comments

Comments
 (0)