summaryrefslogtreecommitdiff
path: root/ec2init
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-01-26 19:49:48 -0500
committerScott Moser <smoser@ubuntu.com>2010-01-26 19:49:48 -0500
commite7fcf1d3ab91193d9e3ff86fa845e5bd0edca86d (patch)
tree29a316b9ed590aa8c4f330ae9c3752d3fad13fb8 /ec2init
parent5b70be886062c3916a6635b391806a2077578fef (diff)
downloadvyos-cloud-init-e7fcf1d3ab91193d9e3ff86fa845e5bd0edca86d.tar.gz
vyos-cloud-init-e7fcf1d3ab91193d9e3ff86fa845e5bd0edca86d.zip
in #include type, allow comment lines
Diffstat (limited to 'ec2init')
-rw-r--r--ec2init/UserDataHandler.py1
1 files changed, 1 insertions, 0 deletions
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)