Skip to content

Commit

Permalink
Don't try to create directories twice
Browse files Browse the repository at this point in the history
Fixes:
==> develop: [2015-05-27T08:36:22+00:00] WARN: Previous directory[/var/lib/consul]: /tmp/vagrant-chef-2/chef-solo-2/cookbooks/consul/recipes/_service.rb:54:in `block in from_file'
==> develop: [2015-05-27T08:36:22+00:00] WARN: Current  directory[/var/lib/consul]: /tmp/vagrant-chef-2/chef-solo-2/cookbooks/consul/recipes/_service.rb:54:in `block in from_file'
  • Loading branch information
tiwilliam committed May 27, 2015
1 parent 3cb6661 commit 0d1536a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
end

# Create service directories
consul_directories.each do |dirname|
consul_directories.uniq.each do |dirname|
directory dirname do
owner consul_user
group consul_group
Expand Down

0 comments on commit 0d1536a

Please sign in to comment.