From badfc7e10fdc96d32190806df80b11f2fc41db13 Mon Sep 17 00:00:00 2001 From: huanzhong zhang Date: Tue, 15 Dec 2015 15:21:28 +0800 Subject: [PATCH] The logName is confused here, it's a localName actually. Signed-off-by: huanzhong zhang --- distribution/pull.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/pull.go b/distribution/pull.go index 57b08c7f46..9180de5084 100644 --- a/distribution/pull.go +++ b/distribution/pull.go @@ -97,7 +97,7 @@ func Pull(ctx context.Context, ref reference.Named, imagePullConfig *ImagePullCo return err } - logName := registry.NormalizeLocalReference(ref) + localName := registry.NormalizeLocalReference(ref) var ( // use a slice to append the error strings and return a joined string to caller @@ -149,7 +149,7 @@ func Pull(ctx context.Context, ref reference.Named, imagePullConfig *ImagePullCo } } - imagePullConfig.EventsService.Log("pull", logName.String(), "") + imagePullConfig.EventsService.Log("pull", localName.String(), "") return nil }