浏览代码

Fix plugin template

Signed-off-by: Robert Lin <robertlin1@gmail.com>
Robert Lin 6 年之前
父节点
当前提交
e0615080b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmd/hercules/plugin.template

+ 1 - 1
cmd/hercules/plugin.template

@@ -92,7 +92,7 @@ func ({{.varname}} *{{.name}}) Configure(facts map[string]interface{}) error {
 // Initialize resets the internal temporary data structures and prepares the object for Consume().
 func ({{.varname}} *{{.name}}) Initialize(repository *git.Repository) error {
   if {{.varname}}.l == nil {
-    l = hercules.NewLogger()
+    {{.varname}}.l = hercules.NewLogger()
   }
   {{.varname}}.OneShotMergeProcessor.Initialize()
   return nil