Merge pull request #30169 from runcom/fix-quoting

image: tarexport: do not quote integers in format string
This commit is contained in:
Sebastiaan van Stijn 2017-01-15 15:47:34 +01:00 коммит произвёл GitHub
Родитель 24c4226dc7 675f4140e7
Коммит 957a77f2e2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -85,7 +85,7 @@ func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool)
rootFS.DiffIDs = nil rootFS.DiffIDs = nil
if expected, actual := len(m.Layers), len(img.RootFS.DiffIDs); expected != actual { 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 { for i, diffID := range img.RootFS.DiffIDs {