]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
ensure hiera hosts entry is an empty hash if there are no hosts (closes #3752)
authorelijah <elijah@riseup.net>
Thu, 5 Jun 2014 17:20:04 +0000 (10:20 -0700)
committerelijah <elijah@riseup.net>
Thu, 5 Jun 2014 17:20:04 +0000 (10:20 -0700)
lib/leap_cli/config/macros.rb

index 30381ee17d61bd2b25aca7f936d7a63f7a31d0d9..375e65ba289189405f7b9f473a13fb46d72f3993 100644 (file)
@@ -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|