core: nicer way to assure array for pviate key path
This commit is contained in:
parent
af7f55f47e
commit
fe0db9a63e
|
@ -382,9 +382,7 @@ module Vagrant
|
||||||
|
|
||||||
# Setup the keys
|
# Setup the keys
|
||||||
info[:private_key_path] ||= []
|
info[:private_key_path] ||= []
|
||||||
if !info[:private_key_path].is_a?(Array)
|
info[:private_key_path] = Array(info[:private_key_path])
|
||||||
info[:private_key_path] = [info[:private_key_path]]
|
|
||||||
end
|
|
||||||
|
|
||||||
# Expand the private key path relative to the root path
|
# Expand the private key path relative to the root path
|
||||||
info[:private_key_path].map! do |path|
|
info[:private_key_path].map! do |path|
|
||||||
|
|
Loading…
Reference in New Issue