mirror of
https://github.com/containers/podman.git
synced 2025-06-29 15:08:09 +08:00
Rename local variables in Runtime.pullRefPairsFromRefNames
... to be more conventional. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1112 Approved by: rhatdan
This commit is contained in:

committed by
Atomic Bot

parent
4e285b52c1
commit
b500f9275e
@ -324,17 +324,17 @@ func (i *Image) createNamesToPull() ([]*pullRefPair, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// pullRefPairsFromNames converts a []*pullRefName to []*pullRefPair
|
// pullRefPairsFromNames converts a []*pullRefName to []*pullRefPair
|
||||||
func (ir *Runtime) pullRefPairsFromRefNames(pullNames []*pullRefName) ([]*pullRefPair, error) {
|
func (ir *Runtime) pullRefPairsFromRefNames(refNames []*pullRefName) ([]*pullRefPair, error) {
|
||||||
// Here we construct the destination references
|
// Here we construct the destination references
|
||||||
res := make([]*pullRefPair, len(pullNames))
|
res := make([]*pullRefPair, len(refNames))
|
||||||
for j, pStruct := range pullNames {
|
for i, rn := range refNames {
|
||||||
destRef, err := is.Transport.ParseStoreReference(ir.store, pStruct.dstName)
|
destRef, err := is.Transport.ParseStoreReference(ir.store, rn.dstName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "error parsing dest reference name")
|
return nil, errors.Wrapf(err, "error parsing dest reference name")
|
||||||
}
|
}
|
||||||
res[j] = &pullRefPair{
|
res[i] = &pullRefPair{
|
||||||
image: pStruct.image,
|
image: rn.image,
|
||||||
srcRef: pStruct.srcRef,
|
srcRef: rn.srcRef,
|
||||||
dstRef: destRef,
|
dstRef: destRef,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user