plugins/provisioners/ansible/provisioner/host.rb in vagrant-unbundled-1.9.7.1 vs plugins/provisioners/ansible/provisioner/host.rb in vagrant-unbundled-1.9.8.1
- old
+ new
@@ -253,10 +253,10 @@
ssh_options << "-o IdentitiesOnly=yes" if !Vagrant::Util::Platform.solaris? && @ssh_info[:keys_only]
# Multiple Private Keys
unless !config.inventory_path && @ssh_info[:private_key_path].size == 1
@ssh_info[:private_key_path].each do |key|
- ssh_options << "-i '#{key}'"
+ ssh_options += ["-o", "IdentityFile=%s" % [key.gsub('%', '%%')]]
end
end
# SSH Forwarding
ssh_options << "-o ForwardAgent=yes" if @ssh_info[:forward_agent]