dont return on error kic sto

pull/7173/head
Medya Gh 2020-03-23 16:42:55 -07:00
parent 5f90a319bd
commit 47c8e9c87b
1 changed files with 2 additions and 2 deletions

View File

@ -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!")