From fe0db9a63e17877f8e0202917c2f405c78b4009f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 16 Apr 2014 16:22:51 -0700 Subject: [PATCH] core: nicer way to assure array for pviate key path --- lib/vagrant/machine.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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|