aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-02-12 18:06:55 +0100
committervarac <varacanero@zeromail.org>2014-02-14 11:39:56 +0100
commit5b72aefd2d317c90198bd6d3f711cbb407b5b6c2 (patch)
tree992a26dfcd14ec55ceb3bd7ddb70a6b4d2180266 /lib
parent185f234f15e90950ab545272e3eedbfda0c65098 (diff)
downloadleap_cli-5b72aefd2d317c90198bd6d3f711cbb407b5b6c2.tar.gz
leap_cli-5b72aefd2d317c90198bd6d3f711cbb407b5b6c2.tar.bz2
Include monitor node itself in hiera hosts hash (Feature #5133)
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/macros.rb1
1 files changed, 0 insertions, 1 deletions
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