mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 23:19:06 +01:00
Drop domain part of host name
This commit is contained in:
parent
38cba10fb6
commit
c5e90247df
@ -166,6 +166,8 @@ func main() {
|
|||||||
log.Print(err)
|
log.Print(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Drop domain part of host name
|
||||||
|
host = strings.SplitN(host, `.`, 2)[0]
|
||||||
clicfg := ReadCli()
|
clicfg := ReadCli()
|
||||||
err = CreatePidfile(clicfg["pidfile"])
|
err = CreatePidfile(clicfg["pidfile"])
|
||||||
err = SetLogging(clicfg["logfile"])
|
err = SetLogging(clicfg["logfile"])
|
||||||
|
Loading…
Reference in New Issue
Block a user