summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-24 11:50:49 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-24 11:50:49 -0400
commit841a773fd36968419354507fa45f44afa6eb8470 (patch)
tree48e2ed07ba4e958e709a0e6fc1a4d38f2f6fd4f2
parentf9cae62c2f70c582a6b12a98911dc82180881364 (diff)
downloadvyos-cloud-init-841a773fd36968419354507fa45f44afa6eb8470.tar.gz
vyos-cloud-init-841a773fd36968419354507fa45f44afa6eb8470.zip
improve comment
-rw-r--r--cloudinit/net/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index 7d7f274d..e13ca470 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -288,8 +288,10 @@ def parse_net_config(path):
def _load_shell_content(content, add_empty=False, empty_val=None):
- """Given the content of a klibc created /run/net*.conf file, return
- its data in dictionary form."""
+ """Given shell like syntax (key=value\nkey2=value2\n) in content
+ return the data in dictionary form. If 'add_empty' is True
+ then add entries in to the returned dictionary for 'VAR='
+ variables. Set their value to empty_val."""
data = {}
for line in shlex.split(content):
key, value = line.split("=", 1)