From fb2fb2ff30db6f1f06f15974a6f6be5c5ed518a6 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 30 Jan 2012 09:24:41 -0500 Subject: support empty lines in '#include' files (LP: #923043) LP: #923043 --- cloudinit/UserDataHandler.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cloudinit/UserDataHandler.py') 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 -- cgit v1.2.3