summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-11-17 23:18:48 +0100
committerGitHub <noreply@github.com>2020-11-17 23:18:48 +0100
commit8a0c3d878b13d86b97da188bda1fe580dbb07b8f (patch)
treed7fa4be266bd8a79008c45c8f357a856eb107003 /pkg/domain/infra/abi
parent0f745272e79daa496e541ff18bc6e21339559f38 (diff)
parentd3e794bda39167b15c5dc14d83333d1306316b11 (diff)
downloadpodman-8a0c3d878b13d86b97da188bda1fe580dbb07b8f.tar.gz
podman-8a0c3d878b13d86b97da188bda1fe580dbb07b8f.tar.bz2
podman-8a0c3d878b13d86b97da188bda1fe580dbb07b8f.zip
Merge pull request #8355 from baude/compatnetworkconnectdisconnect
add network connect|disconnect compat endpoints
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/network.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/network.go b/pkg/domain/infra/abi/network.go
index 4f572fb88..06941f8d0 100644
--- a/pkg/domain/infra/abi/network.go
+++ b/pkg/domain/infra/abi/network.go
@@ -110,7 +110,11 @@ func (ic *ContainerEngine) NetworkRm(ctx context.Context, namesOrIds []string, o
}
func (ic *ContainerEngine) NetworkCreate(ctx context.Context, name string, options entities.NetworkCreateOptions) (*entities.NetworkCreateReport, error) {
- return network.Create(name, options, ic.Libpod)
+ runtimeConfig, err := ic.Libpod.GetConfig()
+ if err != nil {
+ return nil, err
+ }
+ return network.Create(name, options, runtimeConfig)
}
func ifPassesFilterTest(netconf *libcni.NetworkConfigList, filter []string) bool {