morpheus need hostname in DB

This commit is contained in:
Martin Geno 2016-07-14 14:13:45 +02:00
parent 9c73746cc8
commit aab0f81676

View File

@ -56,6 +56,8 @@ func (c *StatsDb) Add(nodeId string, node *models.Node) {
if owner := nodeinfo.Owner; owner != nil { if owner := nodeinfo.Owner; owner != nil {
tags["owner"] = owner.Contact tags["owner"] = owner.Contact
} }
// morpheus needs
tags["hostname"] = nodeinfo.Hostname
} }
fields := map[string]interface{}{ fields := map[string]interface{}{