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 }