瀏覽代碼

The logName is confused here, it's a localName actually.

Signed-off-by: huanzhong zhang <zhanghuanzhong90@gmail.com>
huanzhong zhang 9 年之前
父節點
當前提交
badfc7e10f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      distribution/pull.go

+ 2 - 2
distribution/pull.go

@@ -97,7 +97,7 @@ func Pull(ctx context.Context, ref reference.Named, imagePullConfig *ImagePullCo
 		return err
 		return err
 	}
 	}
 
 
-	logName := registry.NormalizeLocalReference(ref)
+	localName := registry.NormalizeLocalReference(ref)
 
 
 	var (
 	var (
 		// use a slice to append the error strings and return a joined string to caller
 		// 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
 		return nil
 	}
 	}