mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Use function rather than instance variable (#1562)
Fix a rather dumb error on my part where after checking the code behaviour and then moving it to the driver, switched to using the instance variable instead of the function. Because of this, on the first usage the instance variable may not be populated, while the function will correctly set up the connection. Fixes: #1561
This commit is contained in:
@@ -202,11 +202,11 @@ module VagrantPlugins
|
|||||||
end
|
end
|
||||||
|
|
||||||
def list_host_devices
|
def list_host_devices
|
||||||
@connection.client.list_all_interfaces
|
connection.client.list_all_interfaces
|
||||||
end
|
end
|
||||||
|
|
||||||
def list_networks
|
def list_networks
|
||||||
@connection.client.list_all_networks
|
connection.client.list_all_networks
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Reference in New Issue
Block a user