summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/net/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index fa5a0033..31544fd8 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -513,15 +513,15 @@ def iface_start_entry(iface, index):
fullname = iface['name']
if index != 0:
fullname += ":%s" % index
-
+
control = iface['control']
if control == "auto":
cverb = "auto"
elif control in ("hotplug",):
cverb = "allow-" + control
- else:
+ else:
cverb = "# control-" + control
-
+
subst = iface.copy()
subst.update({'fullname': fullname, 'cverb': cverb})