提交 3804c169 编写于 作者: T Thomas Stromberg

Only call stop on the kubelet if it's running

上级 817daa7d
......@@ -60,8 +60,8 @@ func TransferBinaries(cfg config.KubernetesConfig, c command.Runner, sm sysinit.
return errors.Wrapf(err, "downloading %s", name)
}
if name == "kubelet" {
if err := sm.ForceStop("kubelet"); err != nil {
if name == "kubelet" && sm.Active(name) {
if err := sm.ForceStop(name); err != nil {
glog.Errorf("unable to stop kubelet: %v", err)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册