diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-09 04:03:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 04:03:17 +0200 |
commit | 76840f2d991ce691a6945d65ef7ae52d93d211e5 (patch) | |
tree | ea7305667a88ddba43c72ce7f0a0b1c6d65fcebc /cmd/podman/shared | |
parent | 4349f42d66d91fa48cde6aa6ed499eaa41d3e2b5 (diff) | |
parent | 5270cd89d33203ffc3239be2b5ed1b60afd9d867 (diff) | |
download | podman-76840f2d991ce691a6945d65ef7ae52d93d211e5.tar.gz podman-76840f2d991ce691a6945d65ef7ae52d93d211e5.tar.bz2 podman-76840f2d991ce691a6945d65ef7ae52d93d211e5.zip |
Merge pull request #3764 from rhatdan/dnssearch
Allow the passing of '.' to --dns-search
Diffstat (limited to 'cmd/podman/shared')
-rw-r--r-- | cmd/podman/shared/create.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go index 8e356cbcb..7dccc41f1 100644 --- a/cmd/podman/shared/create.go +++ b/cmd/podman/shared/create.go @@ -629,6 +629,9 @@ func ParseCreateOpts(ctx context.Context, c *GenericCLIResults, runtime *libpod. // Validate domains are good for _, dom := range c.StringSlice("dns-search") { + if dom == "." { + continue + } if _, err := parse.ValidateDomain(dom); err != nil { return nil, err } |