summaryrefslogtreecommitdiff
path: root/cloudinit/net
diff options
context:
space:
mode:
authorWesley Wiedenmeier <wesley.wiedenmeier@gmail.com>2016-03-22 00:43:31 -0500
committerWesley Wiedenmeier <wesley.wiedenmeier@gmail.com>2016-03-22 00:43:31 -0500
commit217d92372ca5a4e994f1e9bc9580363dbba59032 (patch)
tree4ba1e1751a45e4e02b4a16f2dce504ccd7654589 /cloudinit/net
parent2aacb06be37e7e8aa84d11ae8c566a26f9df27e4 (diff)
downloadvyos-cloud-init-217d92372ca5a4e994f1e9bc9580363dbba59032.tar.gz
vyos-cloud-init-217d92372ca5a4e994f1e9bc9580363dbba59032.zip
Fix typo
Diffstat (limited to 'cloudinit/net')
-rw-r--r--cloudinit/net/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index e5b45926..4641e54d 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -351,8 +351,9 @@ def find_fallback_network_device():
if 'eth0' in potential_interfaces:
name = 'eth0'
else:
- name = potential_interfaces.sort(
- key=lambda x: int(x.strip(string.ascii_letters)))[0]
+ potential_interfaces.sort(
+ key=lambda x: int(x.strip(string.ascii_letters)))
+ name = potential_interfaces[0]
sysfs_mac = os.path.join(SYS_CLASS_NET, name, 'address')
mac = util.load_file(sysfs_mac).strip()