summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/build.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-11-13 04:36:23 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-11-14 06:25:29 -0500
commitb5e15f18d01219f666cd30623fb3ec73f338d040 (patch)
tree8083e0dff63390dd86054d2e8184fe5a9410d3ab /pkg/bindings/images/build.go
parent42a5b0fd93c8a19433be814273e9ac80e53d7bbe (diff)
downloadpodman-b5e15f18d01219f666cd30623fb3ec73f338d040.tar.gz
podman-b5e15f18d01219f666cd30623fb3ec73f338d040.tar.bz2
podman-b5e15f18d01219f666cd30623fb3ec73f338d040.zip
Podman-remote build is getting ID twice
This PR eliminates the second sending of the image id to the podman-remote client. Fixes: https://github.com/containers/podman/issues/8332 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/bindings/images/build.go')
-rw-r--r--pkg/bindings/images/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go
index 60ffea548..815ab4e86 100644
--- a/pkg/bindings/images/build.go
+++ b/pkg/bindings/images/build.go
@@ -187,7 +187,7 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO
case s.Stream != "":
stdout.Write([]byte(s.Stream))
if re.Match([]byte(s.Stream)) {
- id = s.Stream
+ id = strings.TrimSuffix(s.Stream, "\n")
}
case s.Error != "":
return nil, errors.New(s.Error)