Don't provide a default for the environment. That way currently the environment that is currently set for a node on the server is not mistakenly overridden with "_default".
This commit is contained in:
parent
5f751d5a77
commit
1134c0b7d6
|
@ -23,7 +23,6 @@ module Vagrant
|
|||
@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)
|
||||
|
|
|
@ -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 %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue