Validate adding digests to tagstore with go types

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 20e759ab56e9c17cfe0fbe839cdd4ac9ee6f0752
Component: engine
This commit is contained in:
Tonis Tiigi
2015-11-25 12:42:40 -08:00
parent 60f58722cf
commit c91b830a96
9 changed files with 98 additions and 35 deletions

View File

@ -128,7 +128,7 @@ func (l *tarexporter) setLoadedTag(ref reference.NamedTagged, imgID image.ID, ou
fmt.Fprintf(outStream, "The image %s already exists, renaming the old one with ID %s to empty string\n", ref.String(), string(prevID)) // todo: this message is wrong in case of multiple tags
}
if err := l.ts.Add(ref, imgID, true); err != nil {
if err := l.ts.AddTag(ref, imgID, true); err != nil {
return err
}
return nil