summaryrefslogtreecommitdiff
path: root/pkg/network/config.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-03 09:13:40 -0400
committerGitHub <noreply@github.com>2020-08-03 09:13:40 -0400
commit96ece0ca56fca249bcf84061de0e944f3c092ea5 (patch)
treec6f1f28ae3481f6b617f5931da9d91f323de556d /pkg/network/config.go
parentde5eb3831190262169eab36e64c41992dc22766a (diff)
parent45b100d21ce1ca1843e26366466d09eac2d4add0 (diff)
downloadpodman-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.go5
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")