summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceUpCloud.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/sources/DataSourceUpCloud.py')
-rw-r--r--cloudinit/sources/DataSourceUpCloud.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cloudinit/sources/DataSourceUpCloud.py b/cloudinit/sources/DataSourceUpCloud.py
index 43122f0b..908df5c6 100644
--- a/cloudinit/sources/DataSourceUpCloud.py
+++ b/cloudinit/sources/DataSourceUpCloud.py
@@ -71,7 +71,7 @@ class DataSourceUpCloud(sources.DataSource):
LOG.debug("Finding a fallback NIC")
nic = cloudnet.find_fallback_nic()
LOG.debug("Discovering metadata via DHCP interface %s", nic)
- with EphemeralDHCPv4(nic):
+ with EphemeralDHCPv4(self.distro, nic):
md = util.log_time(
logfunc=LOG.debug,
msg="Reading from metadata service",
@@ -160,6 +160,3 @@ datasources = [
# Return a list of data sources that match this set of dependencies
def get_datasource_list(depends):
return sources.list_from_depends(depends, datasources)
-
-
-# vi: ts=4 expandtab