diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-08-03 09:13:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 09:13:40 -0400 |
commit | 96ece0ca56fca249bcf84061de0e944f3c092ea5 (patch) | |
tree | c6f1f28ae3481f6b617f5931da9d91f323de556d /pkg/network/config.go | |
parent | de5eb3831190262169eab36e64c41992dc22766a (diff) | |
parent | 45b100d21ce1ca1843e26366466d09eac2d4add0 (diff) | |
download | podman-96ece0ca56fca249bcf84061de0e944f3c092ea5.tar.gz podman-96ece0ca56fca249bcf84061de0e944f3c092ea5.tar.bz2 podman-96ece0ca56fca249bcf84061de0e944f3c092ea5.zip |
Merge pull request #7188 from zhangguanzhang/network-404
API returns 500 in case network is not found instead of 404
Diffstat (limited to 'pkg/network/config.go')
-rw-r--r-- | pkg/network/config.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/network/config.go b/pkg/network/config.go index a504e0ad0..0115433e1 100644 --- a/pkg/network/config.go +++ b/pkg/network/config.go @@ -2,7 +2,6 @@ package network import ( "encoding/json" - "errors" "net" ) @@ -20,10 +19,6 @@ const ( DefaultPodmanDomainName = "dns.podman" ) -var ( - ErrNetworkNotFound = errors.New("network not found") -) - // GetDefaultPodmanNetwork outputs the default network for podman func GetDefaultPodmanNetwork() (*net.IPNet, error) { _, n, err := net.ParseCIDR("10.88.1.0/24") |