提交 7df40752 编写于 作者: T Thomas Stromberg

Don't propagate stopped as an error, so that 'delete' works on stopped none clusters

上级 53ce804c
......@@ -206,6 +206,12 @@ func apiServerHealthz(hostname string, port int) (state.State, error) {
}
err = retry.Local(check, 5*time.Second)
// Don't propagate 'Stopped' upwards as an error message, as clients may interpret the err
// as an inability to get status. We need it for retry.Local, however.
if st == state.Stopped {
return st, nil
}
return st, err
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册