diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-12 15:50:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 15:50:22 +0200 |
commit | 0ac73f25eb45611324f255b5222863b6ff0e8525 (patch) | |
tree | f2c8ff0fa46e06b5fd5864765699180b674955c5 /pkg/domain | |
parent | 9d3e31071087908207a8f7fdc84939edf3dc47c0 (diff) | |
parent | 94b972630643b6f4b472a4b03f58fa757d3ca6a5 (diff) | |
download | podman-0ac73f25eb45611324f255b5222863b6ff0e8525.tar.gz podman-0ac73f25eb45611324f255b5222863b6ff0e8525.tar.bz2 podman-0ac73f25eb45611324f255b5222863b6ff0e8525.zip |
Merge pull request #9988 from jmguzik/prune-filters-bindings-net
Add network prune filters support to bindings
Diffstat (limited to 'pkg/domain')
-rw-r--r-- | pkg/domain/infra/tunnel/network.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/network.go b/pkg/domain/infra/tunnel/network.go index adf34460c..7e59e44c2 100644 --- a/pkg/domain/infra/tunnel/network.go +++ b/pkg/domain/infra/tunnel/network.go @@ -92,5 +92,6 @@ func (ic *ContainerEngine) NetworkExists(ctx context.Context, networkname string // Network prune removes unused cni networks func (ic *ContainerEngine) NetworkPrune(ctx context.Context, options entities.NetworkPruneOptions) ([]*entities.NetworkPruneReport, error) { - return network.Prune(ic.ClientCtx, nil) + opts := new(network.PruneOptions).WithFilters(options.Filters) + return network.Prune(ic.ClientCtx, opts) } |