Skip to content

Commit

Permalink
Fix incorrect structure of cluster_uuid insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
cachedout committed Sep 17, 2019
1 parent d5c48e5 commit ab8efdb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions logstash-core/lib/logstash/api/commands/default_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ def all
{:monitoring => {
:hosts => LogStash::SETTINGS.get("xpack.monitoring.elasticsearch.hosts"),
:username => LogStash::SETTINGS.get("xpack.monitoring.elasticsearch.username")
}
} : {}).merge(LogStash::SETTINGS.get("xpack.monitoring.cluster_uuid") ?
LogStash::SETTINGS.get("xpack.monitoring.cluster_uuid") : {} )
}.merge(LogStash::SETTINGS.set?("xpack.monitoring.cluster_uuid") ?
{:cluster_uuid => LogStash::SETTINGS.get("xpack.monitoring.cluster_uuid")} : {})} : {})
end

def host
Expand Down

0 comments on commit ab8efdb

Please sign in to comment.