提交 47c8e9c8 编写于 作者: M Medya Gh

dont return on error kic sto

上级 5f90a319
......@@ -333,11 +333,11 @@ func (d *Driver) Stop() error {
} else {
containers, err := runtime.ListContainers(cruntime.ListOptions{Namespaces: constants.DefaultNamespaces})
if err != nil {
return errors.Wrap(err, "containers")
glog.Errorf("unable list containers : %v", err)
}
if len(containers) > 0 {
if err := runtime.StopContainers(containers); err != nil {
return errors.Wrap(err, "stop containers")
glog.Errorf("unable to stop containers : %v", err)
}
}
glog.Infof("successfully stopped kubernetes!")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册