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:
Darragh Bailey
2022-08-26 22:18:44 +01:00
committed by GitHub
parent f19478b050
commit 0ce13fbcd8

View File

@@ -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