From: varac Date: Wed, 12 Feb 2014 17:06:55 +0000 (+0100) Subject: Include monitor node itself in hiera hosts hash (Feature #5133) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5b72aefd2d317c90198bd6d3f711cbb407b5b6c2;p=leap%2Fleap_cli.git Include monitor node itself in hiera hosts hash (Feature #5133) --- diff --git a/lib/leap_cli/config/macros.rb b/lib/leap_cli/config/macros.rb index ad91245..1402161 100644 --- a/lib/leap_cli/config/macros.rb +++ b/lib/leap_cli/config/macros.rb @@ -178,7 +178,6 @@ module LeapCli; module Config hosts = {} my_location = @node['location'] ? @node['location']['name'] : nil nodes.each_node do |node| - next if node.name == @node.name hosts[node.name] = {'ip_address' => node.ip_address, 'domain_internal' => node.domain.internal, 'domain_full' => node.domain.full} node_location = node['location'] ? node['location']['name'] : nil if my_location == node_location