Commit ee7f2b3d authored by 陈子龙's avatar 陈子龙

异常列表导出 fix

parent 8e69faa9
...@@ -29,6 +29,7 @@ func main() { ...@@ -29,6 +29,7 @@ func main() {
initTimeZone() initTimeZone()
// init ansible hosts // init ansible hosts
initAnsibleHosts() initAnsibleHosts()
initTempDirPrefix()
pflag.Parse() // init start args pflag.Parse() // init start args
initConfig() initConfig()
// init log config // init log config
...@@ -129,3 +130,10 @@ func initAnsibleHosts() { ...@@ -129,3 +130,10 @@ func initAnsibleHosts() {
} }
} }
} }
func initTempDirPrefix() {
err := os.Mkdir(conf.Options.TempDirPrefix, os.ModePerm)
if err != nil {
fmt.Println("创建目录失败!")
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment