diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-03-24 11:50:49 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-03-24 11:50:49 -0400 |
commit | 841a773fd36968419354507fa45f44afa6eb8470 (patch) | |
tree | 48e2ed07ba4e958e709a0e6fc1a4d38f2f6fd4f2 | |
parent | f9cae62c2f70c582a6b12a98911dc82180881364 (diff) | |
download | vyos-cloud-init-841a773fd36968419354507fa45f44afa6eb8470.tar.gz vyos-cloud-init-841a773fd36968419354507fa45f44afa6eb8470.zip |
improve comment
-rw-r--r-- | cloudinit/net/__init__.py | 6 |
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) |