diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-09-25 09:45:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-25 09:45:55 +0200 |
commit | 240095e24bedbb2443926f6777bca4cb63c2ab53 (patch) | |
tree | 0ce51b19d31314b240a5a3cc30b33374cc78855a /pkg/varlinkapi/attach.go | |
parent | a5b24816c75e97c4992c648c219df5792594a3a1 (diff) | |
parent | 61a226fbd51de015e1753df451a2c67a689caf69 (diff) | |
download | podman-240095e24bedbb2443926f6777bca4cb63c2ab53.tar.gz podman-240095e24bedbb2443926f6777bca4cb63c2ab53.tar.bz2 podman-240095e24bedbb2443926f6777bca4cb63c2ab53.zip |
Merge pull request #4102 from baude/remotestdin
conditionally send stdin on remote run
Diffstat (limited to 'pkg/varlinkapi/attach.go')
-rw-r--r-- | pkg/varlinkapi/attach.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/varlinkapi/attach.go b/pkg/varlinkapi/attach.go index 3bd487849..f8557ae0c 100644 --- a/pkg/varlinkapi/attach.go +++ b/pkg/varlinkapi/attach.go @@ -65,7 +65,9 @@ func (i *LibpodAPI) Attach(call iopodman.VarlinkCall, name string, detachKeys st } // ACK the client upgrade request - call.ReplyAttach() + if err := call.ReplyAttach(); err != nil { + return call.ReplyErrorOccurred(err.Error()) + } reader, writer, _, pw, streams := setupStreams(call) |