summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceNoCloud.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-02-07 09:12:36 -0500
committerScott Moser <smoser@ubuntu.com>2013-02-07 09:12:36 -0500
commit88a369c5324e74a2d1bb8dd0bdf8fdc9a95393c8 (patch)
treeb23bcf31dfc1021781514333fdd865baf1e8620f /cloudinit/sources/DataSourceNoCloud.py
parentbf0db8d0793c9c18871cbbafbbad9c127b0bd8ee (diff)
downloadvyos-cloud-init-88a369c5324e74a2d1bb8dd0bdf8fdc9a95393c8.tar.gz
vyos-cloud-init-88a369c5324e74a2d1bb8dd0bdf8fdc9a95393c8.zip
add test_nocloud unit tests, fix one issue found
Diffstat (limited to 'cloudinit/sources/DataSourceNoCloud.py')
-rw-r--r--cloudinit/sources/DataSourceNoCloud.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceNoCloud.py b/cloudinit/sources/DataSourceNoCloud.py
index 5ccd6b99..097bbc52 100644
--- a/cloudinit/sources/DataSourceNoCloud.py
+++ b/cloudinit/sources/DataSourceNoCloud.py
@@ -205,6 +205,8 @@ def parse_cmdline_data(ds_id, fill, cmdline=None):
# short2long mapping to save cmdline typing
s2l = {"h": "local-hostname", "i": "instance-id", "s": "seedfrom"}
for item in kvpairs:
+ if item == "":
+ continue
try:
(k, v) = item.split("=", 1)
except: