summaryrefslogtreecommitdiff
path: root/cmd/podman/shared/intermediate_varlink.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-01-14 18:55:20 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-01-16 09:23:32 -0500
commit45e9a6b12e74d50b8f6ab271c7800cb165f451e4 (patch)
tree5083048ba4ccf238dadd5c434528ee65b49fae62 /cmd/podman/shared/intermediate_varlink.go
parent61fbce710b8d69e1203ea9055479a3f9dbe626b9 (diff)
downloadpodman-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.go2
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)