Add the host tag always. Fixes #4

This commit is contained in:
Evan Phoenix 2015-05-22 16:33:38 -07:00
parent f75e2d44ce
commit 08ce092713
1 changed files with 6 additions and 6 deletions

View File

@ -46,13 +46,13 @@ func NewAgent(config *Config) (*Agent, error) {
} }
agent.Hostname = hostname agent.Hostname = hostname
}
if config.Tags == nil { if config.Tags == nil {
config.Tags = map[string]string{} config.Tags = map[string]string{}
} }
config.Tags["host"] = agent.Hostname config.Tags["host"] = agent.Hostname
}
return agent, nil return agent, nil
} }