mirror of
https://github.com/containers/podman.git
synced 2025-06-26 21:07:02 +08:00
Use buildah commit for podman commit
Resolves: #586 and #520 Signed-off-by: baude <bbaude@redhat.com> Closes: #592 Approved by: mheon
This commit is contained in:
@ -457,8 +457,14 @@ func (i *Image) MatchesID(id string) bool {
|
||||
|
||||
// toStorageReference returns a *storageReference from an Image
|
||||
func (i *Image) toStorageReference() (types.ImageReference, error) {
|
||||
var lookupName string
|
||||
if i.storeRef == nil {
|
||||
storeRef, err := is.Transport.ParseStoreReference(i.imageruntime.store, i.ID())
|
||||
if i.image != nil {
|
||||
lookupName = i.ID()
|
||||
} else {
|
||||
lookupName = i.InputName
|
||||
}
|
||||
storeRef, err := is.Transport.ParseStoreReference(i.imageruntime.store, lookupName)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user