diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-01-14 18:55:20 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-01-16 09:23:32 -0500 |
commit | 45e9a6b12e74d50b8f6ab271c7800cb165f451e4 (patch) | |
tree | 5083048ba4ccf238dadd5c434528ee65b49fae62 /cmd/podman/shared/intermediate_varlink.go | |
parent | 61fbce710b8d69e1203ea9055479a3f9dbe626b9 (diff) | |
download | podman-45e9a6b12e74d50b8f6ab271c7800cb165f451e4.tar.gz podman-45e9a6b12e74d50b8f6ab271c7800cb165f451e4.tar.bz2 podman-45e9a6b12e74d50b8f6ab271c7800cb165f451e4.zip |
Remove c.String(net)
We have a lot of cludgy code trying to make --net and --network equivalent.
This will allow --net to still exists but will eliminate the help and confusion.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/shared/intermediate_varlink.go')
-rw-r--r-- | cmd/podman/shared/intermediate_varlink.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/podman/shared/intermediate_varlink.go b/cmd/podman/shared/intermediate_varlink.go index 89bd52324..691c4f92d 100644 --- a/cmd/podman/shared/intermediate_varlink.go +++ b/cmd/podman/shared/intermediate_varlink.go @@ -127,7 +127,6 @@ func (g GenericCLIResults) MakeVarlink() iopodman.Create { MemorySwap: StringToPtr(g.Find("memory-swap")), MemorySwappiness: AnyIntToInt64Ptr(g.Find("memory-swappiness")), Name: StringToPtr(g.Find("name")), - Net: StringToPtr(g.Find("net")), Network: StringToPtr(g.Find("network")), OomKillDisable: BoolToPtr(g.Find("oom-kill-disable")), OomScoreAdj: AnyIntToInt64Ptr(g.Find("oom-score-adj")), @@ -386,7 +385,6 @@ func VarlinkCreateToGeneric(opts iopodman.Create) GenericCLIResults { m["memory-swap"] = stringFromVarlink(opts.MemorySwap, "memory-swap", nil) m["memory-swappiness"] = int64FromVarlink(opts.MemorySwappiness, "memory-swappiness", &memSwapDefault) m["name"] = stringFromVarlink(opts.Name, "name", nil) - m["net"] = stringFromVarlink(opts.Net, "net", &netModeDefault) m["network"] = stringFromVarlink(opts.Network, "network", &netModeDefault) m["no-hosts"] = boolFromVarlink(opts.NoHosts, "no-hosts", false) m["oom-kill-disable"] = boolFromVarlink(opts.OomKillDisable, "oon-kill-disable", false) |