]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
Include monitor node itself in hiera hosts hash (Feature #5133)
authorvarac <varacanero@zeromail.org>
Wed, 12 Feb 2014 17:06:55 +0000 (18:06 +0100)
committervarac <varacanero@zeromail.org>
Fri, 14 Feb 2014 10:39:56 +0000 (11:39 +0100)
lib/leap_cli/config/macros.rb

index ad91245e452589dbac23695c194e5b8a708f9e65..1402161fd766c1cbdd3061094f705390f99b7eb9 100644 (file)
@@ -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