summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/user_data.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/user_data.py b/cloudinit/user_data.py
index d104d237..2b76482a 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -209,9 +209,11 @@ class UserDataProcessor(object):
if 'filename' in ent:
msg.add_header('Content-Disposition',
'attachment', filename=ent['filename'])
+ if 'launch-index' in ent:
+ msg.add_header('Launch-Index', str(ent['launch-index']))
for header in list(ent.keys()):
- if header in ('content', 'filename', 'type'):
+ if header in ('content', 'filename', 'type', 'launch-index'):
continue
msg.add_header(header, ent['header'])