From 562febe2f9776bd4583e4779caef24ef693cba95 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 19 Jan 2015 13:25:27 -0800 Subject: [PATCH] state: Store container ID in requested state. Signed-off-by: Andrea Luzzardi --- cluster/cluster.go | 1 + state/state.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cluster/cluster.go b/cluster/cluster.go index 24fa9179f4..44a36b4d2f 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -44,6 +44,7 @@ func (c *Cluster) DeployContainer(node *Node, config *dockerclient.ContainerConf // Commit the requested state. st := &state.RequestedState{ + ID: container.Id, Name: name, Config: config, } diff --git a/state/state.go b/state/state.go index 10173255e5..71394f9ff4 100644 --- a/state/state.go +++ b/state/state.go @@ -5,6 +5,7 @@ import ( ) type RequestedState struct { + ID string Name string Config *dockerclient.ContainerConfig }