Merge pull request #18661 from zhanghuanzhong/docker-fix-a-confused-variable
The logName is confused here, it's a localName actually.
This commit is contained in:
commit
7fe5631b5e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue