diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-30 09:24:41 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-30 09:24:41 -0500 |
commit | fb2fb2ff30db6f1f06f15974a6f6be5c5ed518a6 (patch) | |
tree | a21b34cd5979ff0f868b2b1ba2c3c1f14c794ff6 /cloudinit | |
parent | 81ca0bc300ac5d8b8c0498727132e82dab72a396 (diff) | |
download | vyos-cloud-init-fb2fb2ff30db6f1f06f15974a6f6be5c5ed518a6.tar.gz vyos-cloud-init-fb2fb2ff30db6f1f06f15974a6f6be5c5ed518a6.zip |
support empty lines in '#include' files (LP: #923043)
LP: #923043
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/UserDataHandler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/UserDataHandler.py b/cloudinit/UserDataHandler.py index 93d1d36a..98729056 100644 --- a/cloudinit/UserDataHandler.py +++ b/cloudinit/UserDataHandler.py @@ -71,6 +71,8 @@ def do_include(content, appendmsg): line = line[len("#include"):].lstrip() if line.startswith("#"): continue + if line.strip() == "": + continue # urls cannot not have leading or trailing white space msum = hashlib.md5() # pylint: disable=E1101 |