parent
3be6d84675
commit
66ed4f7328
|
@ -144,6 +144,8 @@ func (m *Mysql) gatherServer(serv string, acc plugins.Accumulator) error {
|
||||||
var servtag string
|
var servtag string
|
||||||
if strings.Contains(serv, "@") {
|
if strings.Contains(serv, "@") {
|
||||||
servtag = strings.Split(serv, "@")[1]
|
servtag = strings.Split(serv, "@")[1]
|
||||||
|
} else if serv == "" {
|
||||||
|
servtag = "localhost"
|
||||||
} else {
|
} else {
|
||||||
servtag = serv
|
servtag = serv
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue