summaryrefslogtreecommitdiff
path: root/pkg/specgen/pod_validate.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-13 06:42:56 -0500
committerGitHub <noreply@github.com>2021-02-13 06:42:56 -0500
commit3ba0afdd0f03195827f46b50757928ead44b1567 (patch)
tree9d2cadfe791ebd5a326cc521560b644f586c575e /pkg/specgen/pod_validate.go
parent9d57aa75a5f22296b81cd37abe08660001971c4a (diff)
parent78b419909bdf1eeb4af17fff471b381de91bcf73 (diff)
downloadpodman-3ba0afdd0f03195827f46b50757928ead44b1567.tar.gz
podman-3ba0afdd0f03195827f46b50757928ead44b1567.tar.bz2
podman-3ba0afdd0f03195827f46b50757928ead44b1567.zip
Merge pull request #9342 from Luap99/lint
Enable more golangci-lint linters
Diffstat (limited to 'pkg/specgen/pod_validate.go')
-rw-r--r--pkg/specgen/pod_validate.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/specgen/pod_validate.go b/pkg/specgen/pod_validate.go
index 518adb32f..c9bcdf623 100644
--- a/pkg/specgen/pod_validate.go
+++ b/pkg/specgen/pod_validate.go
@@ -19,7 +19,6 @@ func exclusivePodOptions(opt1, opt2 string) error {
// Validate verifies the input is valid
func (p *PodSpecGenerator) Validate() error {
-
if rootless.IsRootless() && len(p.CNINetworks) == 0 {
if p.StaticIP != nil {
return ErrNoStaticIPRootless