diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-28 08:45:11 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 18:22:59 +0000 |
commit | 3d1449b2cccdf6c84248c82758b0850c971d05be (patch) | |
tree | f9fd3a5d710582f2b947f849a25a03ad8e68c86f /libpod/image/image.go | |
parent | 1c2d245c47cf087471556cdde77b8265c4386b93 (diff) | |
download | podman-3d1449b2cccdf6c84248c82758b0850c971d05be.tar.gz podman-3d1449b2cccdf6c84248c82758b0850c971d05be.tar.bz2 podman-3d1449b2cccdf6c84248c82758b0850c971d05be.zip |
RFC: Rename runtime.pullImage to runtime.pullImageFromHeuristicSource
This is similar to the PushImageToHeuristicDestination RFC.
The goal is to be very explicit about which functions try to heuristically
guess what is the expected format of the string. Not quite "shaming"
the users, but making sure they stand out.
RFC:
- Is this at all acceptable? Desirable?
Should not change behavior (but does not add unit tests).
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1176
Approved by: rhatdan
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r-- | libpod/image/image.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go index 56fe58e7f..9447ec9e1 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -145,7 +145,7 @@ func (ir *Runtime) New(ctx context.Context, name, signaturePolicyPath, authfile if signaturePolicyPath == "" { signaturePolicyPath = ir.SignaturePolicyPath } - imageName, err := ir.pullImage(ctx, name, writer, authfile, signaturePolicyPath, signingoptions, dockeroptions, forceSecure) + imageName, err := ir.pullImageFromHeuristicSource(ctx, name, writer, authfile, signaturePolicyPath, signingoptions, dockeroptions, forceSecure) if err != nil { return nil, errors.Wrapf(err, "unable to pull %s", name) } |