Vendor in latest projectatomic/buildah

Fixes to podman build for unknown image and ADD with url
when doing --layers.

Signed-off-by: umohnani8 <umohnani@redhat.com>

Closes: #1330
Approved by: mheon
This commit is contained in:
umohnani8
2018-08-23 14:44:38 -04:00
committed by Atomic Bot
parent 4c00dc66df
commit 16465007d0
7 changed files with 36 additions and 18 deletions

View File

@ -161,7 +161,10 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai
importBuilder.SetWorkDir(splitChange[1])
}
}
candidates := util.ResolveName(destImage, "", sc, c.runtime.store)
candidates, err := util.ResolveName(destImage, "", sc, c.runtime.store)
if err != nil {
return nil, errors.Wrapf(err, "error resolving name %q", destImage)
}
if len(candidates) == 0 {
return nil, errors.Errorf("error parsing target image name %q", destImage)
}