core: nicer way to assure array for pviate key path

This commit is contained in:
Mitchell Hashimoto 2014-04-16 16:22:51 -07:00
parent af7f55f47e
commit fe0db9a63e
1 changed files with 1 additions and 3 deletions

View File

@ -382,9 +382,7 @@ module Vagrant
# Setup the keys
info[:private_key_path] ||= []
if !info[:private_key_path].is_a?(Array)
info[:private_key_path] = [info[:private_key_path]]
end
info[:private_key_path] = Array(info[:private_key_path])
# Expand the private key path relative to the root path
info[:private_key_path].map! do |path|