diff options
Diffstat (limited to 'cloudinit/sources/helpers/vultr.py')
-rw-r--r-- | cloudinit/sources/helpers/vultr.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cloudinit/sources/helpers/vultr.py b/cloudinit/sources/helpers/vultr.py index a6d5cea7..71676bb1 100644 --- a/cloudinit/sources/helpers/vultr.py +++ b/cloudinit/sources/helpers/vultr.py @@ -18,7 +18,9 @@ LOG = log.getLogger(__name__) @lru_cache() -def get_metadata(url, timeout, retries, sec_between, agent, tmp_dir=None): +def get_metadata( + distro, url, timeout, retries, sec_between, agent, tmp_dir=None +): # Bring up interface (and try untill one works) exception = RuntimeError("Failed to DHCP") @@ -26,7 +28,9 @@ def get_metadata(url, timeout, retries, sec_between, agent, tmp_dir=None): for iface in get_interface_list(): try: with EphemeralDHCPv4( - iface=iface, connectivity_url_data={"url": url} + distro, + iface=iface, + connectivity_url_data={"url": url}, ): # Check for the metadata route, skip if not there if not check_route(url): @@ -285,6 +289,3 @@ def add_interface_names(netcfg): % interface["mac_address"] ) interface["name"] = interface_name - - -# vi: ts=4 expandtab |