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 <imain@redhat.com>
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']