From fab5b35b2ace79564ce182979887f5a062a0e55f Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 16 Jan 2020 15:35:31 -0700 Subject: Friendly amendment: tests, and a help message 1) Help message for podman port was missing [PORT] 2) Add test for 'podman port'. And, actually, an entire networking test that I'd written some weeks ago but apparently didn't 'git add'. Signed-off-by: Ed Santiago Signed-off-by: Brent Baude --- pkg/adapter/containers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/adapter') diff --git a/pkg/adapter/containers.go b/pkg/adapter/containers.go index 2b9430d40..78057e3f9 100644 --- a/pkg/adapter/containers.go +++ b/pkg/adapter/containers.go @@ -1117,7 +1117,7 @@ func (r *LocalRuntime) Port(c *cliconfig.PortValues) ([]*Container, error) { if !c.All { names := []string{} - if len(c.InputArgs) > 1 { + if len(c.InputArgs) >= 1 { names = []string{c.InputArgs[0]} } containers, err = shortcuts.GetContainersByContext(false, c.Latest, names, r.Runtime) -- cgit v1.2.3-54-g00ecf