From e1bbb9d8ded6cd675873d471e1930fe5e2f0be41 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 24 Mar 2021 15:54:32 +0100 Subject: [PATCH] imagetools inspect: don't discard errors from PrintManifestList Looks like this function may return an error, which we currently discard. Signed-off-by: Sebastiaan van Stijn --- commands/imagetools/inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/imagetools/inspect.go b/commands/imagetools/inspect.go index 0e2cf90c..d852d82a 100644 --- a/commands/imagetools/inspect.go +++ b/commands/imagetools/inspect.go @@ -38,7 +38,7 @@ func runInspect(dockerCli command.Cli, in inspectOptions, name string) error { // case images.MediaTypeDockerSchema2Manifest, specs.MediaTypeImageManifest: // TODO: handle distribution manifest and schema1 case images.MediaTypeDockerSchema2ManifestList, ocispec.MediaTypeImageIndex: - imagetools.PrintManifestList(dt, desc, name, os.Stdout) + return imagetools.PrintManifestList(dt, desc, name, os.Stdout) default: fmt.Printf("%s\n", dt) }