aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-05 10:20:04 -0700
committerelijah <elijah@riseup.net>2014-06-05 10:20:04 -0700
commit8154c6f3d1aafad465ea4f2239d5f92f27f2c4f5 (patch)
treef0843d67ddbe6f4cbceb2a9ea9c4f552c440c2c0 /lib
parentc44046995d130727bf219bac95010594f35293e1 (diff)
downloadleap_cli-8154c6f3d1aafad465ea4f2239d5f92f27f2c4f5.tar.gz
leap_cli-8154c6f3d1aafad465ea4f2239d5f92f27f2c4f5.tar.bz2
ensure hiera hosts entry is an empty hash if there are no hosts (closes #3752)
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/macros.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/config/macros.rb b/lib/leap_cli/config/macros.rb
index 30381ee..375e65b 100644
--- a/lib/leap_cli/config/macros.rb
+++ b/lib/leap_cli/config/macros.rb
@@ -195,7 +195,7 @@ module LeapCli; module Config
nodes = nodes.merge(nodes_like_me[:services => 'mx']) # all nodes always need to communicate with mx nodes.
end
end
- return nil unless nodes
+ return {} unless nodes
hosts = {}
my_location = @node['location'] ? @node['location']['name'] : nil
nodes.each_node do |node|