提交 479051b3 编写于 作者: W WangFengTu

If read info file failed, rewrite info file

Signed-off-by: NWangFengTu <wangfengtu@huawei.com>
上级 b9b80bcf
......@@ -125,7 +125,7 @@ func isDaemonInstanceExist(infoFile string) (string, error) {
func newInfoFile(infoFile string, sockAddr string) error {
_, err := isDaemonInstanceExist(infoFile)
if err == os.ErrNotExist {
if !strings.Contains(err.Error(), daemonInstanceExist) {
return createInfoFile(infoFile, sockAddr)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册