diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index e66629f0f..5171165f7 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -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|