summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/helpers.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-09 15:56:26 +0200
committerGitHub <noreply@github.com>2020-04-09 15:56:26 +0200
commit1662310e516cb3c21842f59b8f607bb0af408ec5 (patch)
tree884889920008afc6f688e4f3d5ceec7f9025139b /pkg/domain/infra/tunnel/helpers.go
parent555b30e9ebdf82dfc2e0c7ddd9f0f8b51ccb4a39 (diff)
parent8ce23775a62b816c599e6d65c92985f62acc85c5 (diff)
downloadpodman-1662310e516cb3c21842f59b8f607bb0af408ec5.tar.gz
podman-1662310e516cb3c21842f59b8f607bb0af408ec5.tar.bz2
podman-1662310e516cb3c21842f59b8f607bb0af408ec5.zip
Merge pull request #5754 from baude/v2psformat
v2podman ps alter formats
Diffstat (limited to 'pkg/domain/infra/tunnel/helpers.go')
-rw-r--r--pkg/domain/infra/tunnel/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/helpers.go b/pkg/domain/infra/tunnel/helpers.go
index 682d60d6a..4d7e45897 100644
--- a/pkg/domain/infra/tunnel/helpers.go
+++ b/pkg/domain/infra/tunnel/helpers.go
@@ -30,7 +30,7 @@ func getContainersByContext(contextWithConnection context.Context, all bool, nam
for _, id := range namesOrIds {
var found bool
for _, con := range c {
- if id == con.ID || strings.HasPrefix(con.ID, id) || util.StringInSlice(id, con.Names) {
+ if id == con.ID || strings.HasPrefix(con.ID, id) || util.StringInSlice(id, con.ContainerNames) {
cons = append(cons, con)
found = true
break