mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Avoid blanking username if set by user (#1352)
While the username may not be used unless the connection is via ssh, should avoid forcing to nil by accident when re-parsing from the uri.
This commit is contained in:
@@ -192,14 +192,14 @@ describe VagrantPlugins::ProviderLibvirt::Config do
|
||||
],
|
||||
[ # when username explicitly set without ssh
|
||||
{:username => 'my_user' },
|
||||
{:uri => 'qemu:///system'},
|
||||
{:uri => 'qemu:///system', :username => 'my_user'},
|
||||
{
|
||||
:env => {'LIBVIRT_DEFAULT_URI' => 'qemu://session'},
|
||||
}
|
||||
],
|
||||
[ # when username explicitly set with host but without ssh
|
||||
{:username => 'my_user', :host => 'remote'},
|
||||
{:uri => 'qemu://remote/system'},
|
||||
{:uri => 'qemu://remote/system', :username => 'my_user'},
|
||||
{
|
||||
:env => {'LIBVIRT_DEFAULT_URI' => 'qemu://session'},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user