Browse Source

Merge pull request #17881 from aaronlehmann/import-logging

Correct import event logging
David Calavera 9 năm trước cách đây
mục cha
commit
69f73252e9
1 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 1 7
      graph/import.go

+ 1 - 7
graph/import.go

@@ -9,7 +9,6 @@ import (
 	"github.com/docker/docker/pkg/progressreader"
 	"github.com/docker/docker/pkg/progressreader"
 	"github.com/docker/docker/pkg/streamformatter"
 	"github.com/docker/docker/pkg/streamformatter"
 	"github.com/docker/docker/runconfig"
 	"github.com/docker/docker/runconfig"
-	"github.com/docker/docker/utils"
 )
 )
 
 
 // Import imports an image, getting the archived layer data either from
 // Import imports an image, getting the archived layer data either from
@@ -69,11 +68,6 @@ func (s *TagStore) Import(src string, repo string, tag string, msg string, inCon
 		}
 		}
 	}
 	}
 	outStream.Write(sf.FormatStatus("", img.ID))
 	outStream.Write(sf.FormatStatus("", img.ID))
-	logID := img.ID
-	if tag != "" {
-		logID = utils.ImageReference(logID, tag)
-	}
-
-	s.eventsService.Log("import", logID, "")
+	s.eventsService.Log("import", img.ID, "")
 	return nil
 	return nil
 }
 }