Remove spec info from container creation event data.

This commit is contained in:
Rohit Jnagal 2015-05-05 22:05:15 +00:00
parent 4c21290b07
commit 3b13df3c6c
2 changed files with 0 additions and 14 deletions

View File

@ -508,19 +508,10 @@ const (
// Extra information about an event. Only one type will be set.
type EventData struct {
// Information about a container creation event.
Created *CreatedEventData `json:"created,omitempty"`
// Information about an OOM kill event.
OomKill *OomKillEventData `json:"oom,omitempty"`
}
// Information related to a container creation event.
type CreatedEventData struct {
// Spec of the container at creation.
Spec ContainerSpec `json:"spec"`
}
// Information related to an OOM kill instance
type OomKillEventData struct {
// process id of the killed process

View File

@ -707,11 +707,6 @@ func (m *manager) createContainer(containerName string) error {
ContainerName: contRef.Name,
Timestamp: contSpec.CreationTime,
EventType: info.EventContainerCreation,
EventData: info.EventData{
Created: &info.CreatedEventData{
Spec: contSpec,
},
},
}
err = m.eventHandler.AddEvent(newEvent)
if err != nil {