Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1283 from oxyc/issue-1281
Browse files Browse the repository at this point in the history
Issue #1281: Avoid TypeError by only merging optional config content when present
  • Loading branch information
geerlingguy authored Apr 11, 2017
2 parents ffa2749 + 1c41101 commit 5ccb61f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ vconfig = YAML.load_file("#{host_drupalvm_dir}/default.config.yml")
# Use optional config.yml and local.config.yml for configuration overrides.
['config.yml', 'local.config.yml', "#{drupalvm_env}.config.yml"].each do |config_file|
if File.exist?("#{host_config_dir}/#{config_file}")
vconfig.merge!(YAML.load_file("#{host_config_dir}/#{config_file}"))
optional_config = YAML.load_file("#{host_config_dir}/#{config_file}")
vconfig.merge!(optional_config) if optional_config
end
end

Expand Down

0 comments on commit 5ccb61f

Please sign in to comment.