From b1696fb1b0be8e6e2ce154d748ed25289a216125 Mon Sep 17 00:00:00 2001 From: Ian Main Date: Wed, 5 Sep 2012 19:00:54 -0700 Subject: [PATCH] Add a newline to user data injection. If no newline is present at the end of the user-data section of the template, the addition of the touch command will cause the last line to break. Change-Id: I15ba402f83f6fba03f7d0455a63a5dc03480973d Signed-off-by: Ian Main --- heat/engine/instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/instance.py b/heat/engine/instance.py index 9d19a71d..74f05e3c 100644 --- a/heat/engine/instance.py +++ b/heat/engine/instance.py @@ -191,7 +191,7 @@ class Instance(resources.Resource): def handle_create(self): security_groups = self.properties.get('SecurityGroups') userdata = self.properties['UserData'] - userdata += 'touch /var/lib/cloud/instance/provision-finished\n' + userdata += '\ntouch /var/lib/cloud/instance/provision-finished\n' flavor = self.properties['InstanceType'] key_name = self.properties['KeyName'] -- 2.45.2