as `key` is a file path, it must be quoted
This commit is contained in:
parent
c9577d5967
commit
a76dfc7b37
|
@ -255,7 +255,7 @@ module VagrantPlugins
|
||||||
# Multiple Private Keys
|
# Multiple Private Keys
|
||||||
unless !config.inventory_path && @ssh_info[:private_key_path].size == 1
|
unless !config.inventory_path && @ssh_info[:private_key_path].size == 1
|
||||||
@ssh_info[:private_key_path].each do |key|
|
@ssh_info[:private_key_path].each do |key|
|
||||||
ssh_options << "-o IdentityFile=%s" % [ key.gsub('%', '%%') ]
|
ssh_options << "-o 'IdentityFile=%s'" % [ key.gsub('%', '%%') ]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue