image: tarexport: do not quote integers in format string
Basically, prevents outputs like: ``` invalid manifest, layers length mismatch: expected '\x02', got '\x01' ``` Signed-off-by: Antonio Murdaca <runcom@redhat.com> Upstream-commit: 675f4140e735c71d917241ddfa0d51092aa8bc56 Component: engine
This commit is contained in:
@ -85,7 +85,7 @@ func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool)
|
||||
rootFS.DiffIDs = nil
|
||||
|
||||
if expected, actual := len(m.Layers), len(img.RootFS.DiffIDs); expected != actual {
|
||||
return fmt.Errorf("invalid manifest, layers length mismatch: expected %q, got %q", expected, actual)
|
||||
return fmt.Errorf("invalid manifest, layers length mismatch: expected %d, got %d", expected, actual)
|
||||
}
|
||||
|
||||
for i, diffID := range img.RootFS.DiffIDs {
|
||||
|
||||
Reference in New Issue
Block a user