From 2dfb744d8cae8e324676efcd845055f3cb0353bb Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 7 May 2019 11:09:33 -0500 Subject: fix podman-remote ps --ns the namespace for the remote client was being incorrectly derived from the "remote" client. fixes: #2938 Signed-off-by: baude --- pkg/adapter/containers.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/adapter/containers.go') diff --git a/pkg/adapter/containers.go b/pkg/adapter/containers.go index 0721af773..82d999202 100644 --- a/pkg/adapter/containers.go +++ b/pkg/adapter/containers.go @@ -1022,3 +1022,8 @@ func (r *LocalRuntime) GenerateSystemd(c *cliconfig.GenerateSystemdValues) (stri } return systemdgen.CreateSystemdUnitAsString(name, ctr.ID(), c.RestartPolicy, ctr.Config().StaticDir, timeout) } + +// GetNamespaces returns namespace information about a container for PS +func (r *LocalRuntime) GetNamespaces(container shared.PsContainerOutput) *shared.Namespace { + return shared.GetNamespaces(container.Pid) +} -- cgit v1.2.3-54-g00ecf