Merge pull request #138 from cloudbuilders/userdata-whitespace

Normalize newline characters in userdata
This commit is contained in:
Devin Carlen 2011-09-29 10:21:38 -07:00
commit 576eef884a

View File

@ -32,6 +32,7 @@ from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect, render_to_response
from django.utils.text import normalize_newlines
from django.utils.translation import ugettext as _
from django import shortcuts
@ -98,7 +99,7 @@ class LaunchForm(forms.SelfHandlingForm):
image,
flavor,
data.get('key_name'),
data.get('user_data'),
normalize_newlines(data.get('user_data')),
data.get('security_groups'))
msg = 'Instance was successfully launched'