Skip to content

Commit

Permalink
Don't provide a default for the environment. That way currently the e…
Browse files Browse the repository at this point in the history
…nvironment that is currently set for a node on the server is not mistakenly overridden with "_default".
  • Loading branch information
Pat Collins authored and mitchellh committed May 12, 2011
1 parent 5f751d5 commit 1134c0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/vagrant/provisioners/chef_server.rb
Expand Up @@ -23,7 +23,6 @@ def initialize
@client_key_path = "/etc/chef/client.pem"
@file_cache_path = "/srv/chef/file_store"
@file_backup_path = "/srv/chef/cache"
@environment = "_default"
end

def validate(errors)
Expand Down
2 changes: 1 addition & 1 deletion templates/chef_server_client.erb
Expand Up @@ -13,7 +13,7 @@ client_key "<%= client_key %>"
file_cache_path "<%= file_cache_path %>"
file_backup_path "<%= file_backup_path %>"

<% unless environment == "_default" %>
<% unless environment.nil? %>
environment "<%= environment %>"
<% end %>

Expand Down

0 comments on commit 1134c0b

Please sign in to comment.