mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Handle custom port for remote libvirt (#1296)
Extract the port number from the parsed URI as part of finalizing the uri and associated options. Don't expose this as a separate item to be set as it can be passed in as part of the host entry. Closes: #789
This commit is contained in:
@@ -358,6 +358,10 @@ describe VagrantPlugins::ProviderLibvirt::Config do
|
||||
{:connect_via_ssh => true, :host => 'remote', :username => 'myuser'},
|
||||
"ssh 'remote' -l 'myuser' -W %h:%p",
|
||||
],
|
||||
[ # remote contains port
|
||||
{:connect_via_ssh => true, :host => 'remote:2222'},
|
||||
"ssh 'remote' -p 2222 -W %h:%p",
|
||||
],
|
||||
[ # include user and default ssh key exists
|
||||
{:connect_via_ssh => true, :host => 'remote', :username => 'myuser'},
|
||||
"ssh 'remote' -l 'myuser' -i '/home/tests/.ssh/id_rsa' -W %h:%p",
|
||||
|
||||
Reference in New Issue
Block a user