From e7fcf1d3ab91193d9e3ff86fa845e5bd0edca86d Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 26 Jan 2010 19:49:48 -0500 Subject: in #include type, allow comment lines --- ec2init/UserDataHandler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ec2init/UserDataHandler.py b/ec2init/UserDataHandler.py index 1066ce15..f7c0e214 100644 --- a/ec2init/UserDataHandler.py +++ b/ec2init/UserDataHandler.py @@ -26,6 +26,7 @@ def do_include(str,parts): # is just a list of urls, one per line for line in str.splitlines(): if line == "#include": continue + if line.startswith("#"): continue content = urllib.urlopen(line).read() process_includes(email.message_from_string(decomp_str(content)),parts) -- cgit v1.2.3