Skip to content

Commit

Permalink
Add the host tag always. Fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed May 22, 2015
1 parent f75e2d4 commit 08ce092
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ func NewAgent(config *Config) (*Agent, error) {
}

agent.Hostname = hostname
}

if config.Tags == nil {
config.Tags = map[string]string{}
}

config.Tags["host"] = agent.Hostname
if config.Tags == nil {
config.Tags = map[string]string{}
}

config.Tags["host"] = agent.Hostname

return agent, nil
}

Expand Down

0 comments on commit 08ce092

Please sign in to comment.