Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Change-Id: Iff555d88b3e5489c5190e9295bef4b0e1da92b5a
host.bundle = resource_bundle
host.config = config
rmanager.configureNetworking(resource_bundle, host, vlan_map)
+ host.save()
except Exception:
host.booked = False
+ host.save()
print("Failed to book host due to error configuring it")
return
+ new_template.save()
+
booking = Booking.objects.create(
purpose=purpose,
project=project,
booking.pdf = PDFTemplater.makePDF(booking)
+ booking.save()
+
for collaborator_username in collaborator_usernames:
try:
user = User.objects.get(username=collaborator_username)