diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-09-15 14:45:55 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-09-16 06:14:35 -0400 |
commit | 21841dc381f252d447a00e2d4ca5082a5e80d0f7 (patch) | |
tree | c906f734036a8be65503699f1a8a0d1064b24dbd /cmd/podman/utils | |
parent | 4ba6ee306088a4d322fe28f292bf5d5c4d17b778 (diff) | |
download | podman-21841dc381f252d447a00e2d4ca5082a5e80d0f7.tar.gz podman-21841dc381f252d447a00e2d4ca5082a5e80d0f7.tar.bz2 podman-21841dc381f252d447a00e2d4ca5082a5e80d0f7.zip |
Default to --dns-option to match Docker and Buildah
[NO NEW TESTS NEEDED] Existing tests cover this.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/utils')
-rw-r--r-- | cmd/podman/utils/alias.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/utils/alias.go b/cmd/podman/utils/alias.go index b37d0f714..f6ea5110e 100644 --- a/cmd/podman/utils/alias.go +++ b/cmd/podman/utils/alias.go @@ -5,6 +5,8 @@ import "github.com/spf13/pflag" // AliasFlags is a function to handle backwards compatibility with old flags func AliasFlags(f *pflag.FlagSet, name string) pflag.NormalizedName { switch name { + case "dns-opt": + name = "dns-option" case "healthcheck-command": name = "health-cmd" case "healthcheck-interval": |