mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Fixing issue where use_node_name was always been set as false when merging telemetry configurations
This commit is contained in:
@@ -1053,6 +1053,10 @@ func (a *Telemetry) Merge(b *Telemetry) *Telemetry {
|
||||
if b.DisableHostname {
|
||||
result.DisableHostname = true
|
||||
}
|
||||
|
||||
if b.UseNodeName {
|
||||
result.UseNodeName = true
|
||||
}
|
||||
if b.CollectionInterval != "" {
|
||||
result.CollectionInterval = b.CollectionInterval
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user