diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-02-07 09:12:36 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-02-07 09:12:36 -0500 |
commit | 88a369c5324e74a2d1bb8dd0bdf8fdc9a95393c8 (patch) | |
tree | b23bcf31dfc1021781514333fdd865baf1e8620f /cloudinit/sources | |
parent | bf0db8d0793c9c18871cbbafbbad9c127b0bd8ee (diff) | |
download | vyos-cloud-init-88a369c5324e74a2d1bb8dd0bdf8fdc9a95393c8.tar.gz vyos-cloud-init-88a369c5324e74a2d1bb8dd0bdf8fdc9a95393c8.zip |
add test_nocloud unit tests, fix one issue found
Diffstat (limited to 'cloudinit/sources')
-rw-r--r-- | cloudinit/sources/DataSourceNoCloud.py | 2 |
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: |