mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
1eafa0f706
commit
675f4140e7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue