From 3abc7dcc9603cf978e5b7c2762e80998a4a6eef5 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Mon, 29 Mar 2021 15:00:52 -0400 Subject: Hostname not required Change-Id: I7d639a17452e426e92671c558b111d6bcec34e8c Signed-off-by: Sean Smith --- src/booking/forms.py | 2 +- 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'] -- cgit 1.2.3-korg