In error, the first letter is low-case letter
Signed-off-by: YuPengZTE <yu.peng36@zte.com.cn>
This commit is contained in:
parent
48c615f853
commit
4dbc78a5af
|
@ -810,7 +810,7 @@ func fixManifestLayers(m *schema1.Manifest) error {
|
||||||
|
|
||||||
if imgs[len(imgs)-1].Parent != "" && runtime.GOOS != "windows" {
|
if imgs[len(imgs)-1].Parent != "" && runtime.GOOS != "windows" {
|
||||||
// Windows base layer can point to a base layer parent that is not in manifest.
|
// Windows base layer can point to a base layer parent that is not in manifest.
|
||||||
return errors.New("Invalid parent ID in the base layer of the image.")
|
return errors.New("invalid parent ID in the base layer of the image")
|
||||||
}
|
}
|
||||||
|
|
||||||
// check general duplicates to error instead of a deadlock
|
// check general duplicates to error instead of a deadlock
|
||||||
|
|
|
@ -80,7 +80,7 @@ func TestFixManifestLayersBaseLayerParent(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "Invalid parent ID in the base layer of the image.") {
|
if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "invalid parent ID in the base layer of the image") {
|
||||||
t.Fatalf("expected an invalid parent ID error from fixManifestLayers")
|
t.Fatalf("expected an invalid parent ID error from fixManifestLayers")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue