mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
Correct import event logging
Importing an image currently logs an event with id:tag. This format is strange and nonstandard - possibly a mistake. Just log the ID instead. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"github.com/docker/docker/pkg/progressreader"
|
||||
"github.com/docker/docker/pkg/streamformatter"
|
||||
"github.com/docker/docker/runconfig"
|
||||
"github.com/docker/docker/utils"
|
||||
)
|
||||
|
||||
// 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))
|
||||
logID := img.ID
|
||||
if tag != "" {
|
||||
logID = utils.ImageReference(logID, tag)
|
||||
}
|
||||
|
||||
s.eventsService.Log("import", logID, "")
|
||||
s.eventsService.Log("import", img.ID, "")
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user