diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-22 09:21:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 09:21:45 -0400 |
commit | 5d70f46bd3f90739bf1ae3eba473523200669025 (patch) | |
tree | fb6c5e53a5344a65c2923123a40c5c37823a3ace /pkg/api/handlers/compat | |
parent | 2cd2359a6d9ba4135495dc9be616bb1edebb170d (diff) | |
parent | cf227cc7f27b9db1cedc46772677d8ca6acdc5b8 (diff) | |
download | podman-5d70f46bd3f90739bf1ae3eba473523200669025.tar.gz podman-5d70f46bd3f90739bf1ae3eba473523200669025.tar.bz2 podman-5d70f46bd3f90739bf1ae3eba473523200669025.zip |
Merge pull request #8104 from baude/setnetworkdriverdefault
set compat network driver default
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r-- | pkg/api/handlers/compat/networks.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/networks.go b/pkg/api/handlers/compat/networks.go index a46784a6c..629ca565e 100644 --- a/pkg/api/handlers/compat/networks.go +++ b/pkg/api/handlers/compat/networks.go @@ -231,6 +231,9 @@ func CreateNetwork(w http.ResponseWriter, r *http.Request) { if len(networkCreate.Name) > 0 { name = networkCreate.Name } + if len(networkCreate.Driver) < 1 { + networkCreate.Driver = network.DefaultNetworkDriver + } // At present I think we should just support the bridge driver // and allow demand to make us consider more if networkCreate.Driver != network.DefaultNetworkDriver { |