Permalink
Browse files

Correct the way we list 'overriden' hosts in /etc/hosts

  • Loading branch information...
michaelklishin committed Jul 29, 2011
1 parent 3e59d5e commit 024aa8fbb5ad109cd1d5abde47763678a41ec2b8
@@ -1 +1,2 @@
-default[:travis_build_environment][:path] = "/tmp/travis"
+default[:travis_build_environment][:path] = "/tmp/travis"
+default[:travis_build_environment][:hosts] = Hash.new
@@ -9,6 +9,6 @@ ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# put Varnish in front of rubygems.org
-<% node[:travis_build_environment].fetch(:hosts, Hash.new).each do |host, ip| %>
+<% node.travis_build_environment.hosts.each do |host, ip| %>
<%= ip %> <%= host %>
<% end %>

0 comments on commit 024aa8f

Please sign in to comment.