summaryrefslogtreecommitdiff
path: root/cloudinit/net/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-23 15:37:11 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-23 15:37:11 -0400
commit1471ddd3210a4ac5753330f97c12bf8960fedbf7 (patch)
treea30ff039885dc7b9570ab6e33cb02929665bd25d /cloudinit/net/__init__.py
parent44f71ff4ccb72c89f6cdebc8a7b4e7a0d7029818 (diff)
downloadvyos-cloud-init-1471ddd3210a4ac5753330f97c12bf8960fedbf7.tar.gz
vyos-cloud-init-1471ddd3210a4ac5753330f97c12bf8960fedbf7.zip
fix tox issues
Diffstat (limited to 'cloudinit/net/__init__.py')
-rw-r--r--cloudinit/net/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index 9f5a7fd7..4f6b4dfc 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -289,7 +289,7 @@ def _load_shell_content(content, add_empty=False, empty_val=None):
its data in dictionary form."""
data = {}
for line in shlex.split(content):
- key, value = line.split("=", maxsplit=1)
+ key, value = line.split("=", 1)
if not value:
value = empty_val
if add_empty or value:
@@ -366,7 +366,6 @@ def config_from_klibc_net_cfg(files=None, mac_addrs=None):
if files is None:
files = glob.glob('/run/net*.conf')
- devs = {}
entries = []
names = {}
for cfg_file in files: