summaryrefslogtreecommitdiff
path: root/pkg/adapter
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-01-16 15:35:31 -0700
committerBrent Baude <bbaude@redhat.com>2020-02-23 11:04:39 -0600
commitfab5b35b2ace79564ce182979887f5a062a0e55f (patch)
treed23c87efb042295e2cb8bea9a1ae3b3074073f30 /pkg/adapter
parent5a1609b9cf89940c570e488a2ea0f481b22ed424 (diff)
downloadpodman-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/adapter')
-rw-r--r--pkg/adapter/containers.go2
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)