Browse code

fix inconsistent state string with containerd

should be `stopped` according to containerd:
https://github.com/containerd/containerd/blob/v0.2.x/runtime/runtime.go#L104

Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>

Deng Guangxing authored on 2017/05/08 12:18:51
Showing 1 changed files
... ...
@@ -467,7 +467,7 @@ func (clnt *client) Restore(containerID string, attachStdio StdioCallback, optio
467 467
 	cont, err := clnt.getContainerdContainer(containerID)
468 468
 	// Get its last event
469 469
 	ev, eerr := clnt.getContainerLastEvent(containerID)
470
-	if err != nil || cont.Status == "Stopped" {
470
+	if err != nil || cont.Status == "stopped" {
471 471
 		if err != nil {
472 472
 			logrus.Warnf("libcontainerd: failed to retrieve container %s state: %v", containerID, err)
473 473
 		}