diff options
author | Sean Smith <ssmith@iol.unh.edu> | 2021-03-29 15:00:52 -0400 |
---|---|---|
committer | Sean Smith <ssmith@iol.unh.edu> | 2021-03-29 15:01:23 -0400 |
commit | 3abc7dcc9603cf978e5b7c2762e80998a4a6eef5 (patch) | |
tree | c62bf3bad65ea799c73f649af5ffea90a516994f /src/booking | |
parent | 7addb00710a5865a9e6bc38f1d826aa0323ee67e (diff) |
Hostname not required
Change-Id: I7d639a17452e426e92671c558b111d6bcec34e8c
Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
Diffstat (limited to 'src/booking')
-rw-r--r-- | src/booking/forms.py | 2 | ||||
-rw-r--r-- | src/booking/quick_deployer.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/booking/forms.py b/src/booking/forms.py index 19c0c85..e7be70f 100644 --- a/src/booking/forms.py +++ b/src/booking/forms.py @@ -21,7 +21,7 @@ from booking.lib import get_user_items, get_user_field_opts class QuickBookingForm(forms.Form): purpose = forms.CharField(max_length=1000) project = forms.CharField(max_length=400) - hostname = forms.CharField(max_length=400) + hostname = forms.CharField(required=False, max_length=400) installer = forms.ModelChoiceField(queryset=Installer.objects.all(), required=False) scenario = forms.ModelChoiceField(queryset=Scenario.objects.all(), required=False) diff --git a/src/booking/quick_deployer.py b/src/booking/quick_deployer.py index 7865ee4..0a3bfc6 100644 --- a/src/booking/quick_deployer.py +++ b/src/booking/quick_deployer.py @@ -205,7 +205,7 @@ def create_from_form(form, request): purpose_field = form.cleaned_data['purpose'] project_field = form.cleaned_data['project'] users_field = form.cleaned_data['users'] - hostname = form.cleaned_data['hostname'] + hostname = 'opnfv_host' if not form.cleaned_data['hostname'] else form.cleaned_data['hostname'] length = form.cleaned_data['length'] image = form.cleaned_data['image'] |