summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/containers.go
diff options
context:
space:
mode:
authorPeter Hunt <pehunt@redhat.com>2019-07-22 16:10:02 -0400
committerPeter Hunt <pehunt@redhat.com>2019-07-23 13:29:33 -0400
commit638b73a046e21a2a033e9831cf622e96aa1c8fc9 (patch)
treeda2550fa145ca341a7bd7051ee29ba0e5befc75a /pkg/varlinkapi/containers.go
parent5bf99a82ff48cd5097182c55fe1347daf793324b (diff)
downloadpodman-638b73a046e21a2a033e9831cf622e96aa1c8fc9.tar.gz
podman-638b73a046e21a2a033e9831cf622e96aa1c8fc9.tar.bz2
podman-638b73a046e21a2a033e9831cf622e96aa1c8fc9.zip
remove unnecessary conversions
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'pkg/varlinkapi/containers.go')
-rw-r--r--pkg/varlinkapi/containers.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/varlinkapi/containers.go b/pkg/varlinkapi/containers.go
index 97eb36014..6e2b26c0e 100644
--- a/pkg/varlinkapi/containers.go
+++ b/pkg/varlinkapi/containers.go
@@ -808,7 +808,7 @@ func (i *LibpodAPI) ExecContainer(call iopodman.VarlinkCall, opts iopodman.ExecO
resizeChan := make(chan remotecommand.TerminalSize)
reader, writer, _, pipeWriter, streams := setupStreams(call)
- //reader, _, _, pipeWriter, streams := setupStreams(call)
+
type ExitCodeError struct {
ExitCode uint32
Error error
@@ -837,8 +837,7 @@ func (i *LibpodAPI) ExecContainer(call iopodman.VarlinkCall, opts iopodman.ExecO
ecErr := <-ecErrChan
- // TODO FIXME prevent all of these conversions
- exitCode := int(ecErr.ExitCode)
+ exitCode := ecErr.ExitCode
if errors.Cause(ecErr.Error) == define.ErrOCIRuntimePermissionDenied {
exitCode = define.ExecErrorCodeCannotInvoke
}