From: elijah Date: Thu, 5 Jun 2014 17:20:04 +0000 (-0700) Subject: ensure hiera hosts entry is an empty hash if there are no hosts (closes #3752) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8154c6f3d1aafad465ea4f2239d5f92f27f2c4f5;p=leap%2Fleap_cli.git ensure hiera hosts entry is an empty hash if there are no hosts (closes #3752) --- 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|