diff options
author | Ed Santiago <santiago@redhat.com> | 2020-01-16 15:35:31 -0700 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-02-23 11:04:39 -0600 |
commit | fab5b35b2ace79564ce182979887f5a062a0e55f (patch) | |
tree | d23c87efb042295e2cb8bea9a1ae3b3074073f30 /pkg | |
parent | 5a1609b9cf89940c570e488a2ea0f481b22ed424 (diff) | |
download | podman-fab5b35b2ace79564ce182979887f5a062a0e55f.tar.gz podman-fab5b35b2ace79564ce182979887f5a062a0e55f.tar.bz2 podman-fab5b35b2ace79564ce182979887f5a062a0e55f.zip |
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 <santiago@redhat.com>
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/adapter/containers.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |