aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-09 14:12:00 -0400
committerGitHub <noreply@github.com>2020-09-09 14:12:00 -0400
commit08b602043ec07601b9be23c449c7773067683d90 (patch)
treeb26552e255e42536992119c75f31eb2dc20074cb /pkg/domain/infra/abi
parent68dace0619b86196c38945d0918181272656a254 (diff)
parent1d7d21819138b2b1c7abd732dbf26bca5fc8e951 (diff)
downloadpodman-08b602043ec07601b9be23c449c7773067683d90.tar.gz
podman-08b602043ec07601b9be23c449c7773067683d90.tar.bz2
podman-08b602043ec07601b9be23c449c7773067683d90.zip
Merge pull request #7575 from rhatdan/runlabel
Fix podman container runlabel --display
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/containers_runlabel.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/containers_runlabel.go b/pkg/domain/infra/abi/containers_runlabel.go
index ab2316d47..3983ba3a8 100644
--- a/pkg/domain/infra/abi/containers_runlabel.go
+++ b/pkg/domain/infra/abi/containers_runlabel.go
@@ -36,6 +36,11 @@ func (ic *ContainerEngine) ContainerRunlabel(ctx context.Context, label string,
return err
}
+ if options.Display {
+ fmt.Printf("command: %s\n", strings.Join(append([]string{os.Args[0]}, cmd[1:]...), " "))
+ return nil
+ }
+
stdErr := os.Stderr
stdOut := os.Stdout
stdIn := os.Stdin