aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking/views.py
diff options
context:
space:
mode:
authorSean Smith <ssmith@iol.unh.edu>2020-07-28 13:53:51 -0400
committerSean Smith <ssmith@iol.unh.edu>2020-07-31 12:21:48 -0400
commit219d6376a369bf62c78b7b092b605f96997a3599 (patch)
tree56402cb50df4b38457afe4a1961d65f499d252f7 /src/booking/views.py
parent34c9d33a6235cf45175d0e4e1017c569e0f6095d (diff)
Fix Pod detail menu and re-imaging
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I483c9e9c6dc8d492cc9340ab42b6b2d518f52950
Diffstat (limited to 'src/booking/views.py')
-rw-r--r--src/booking/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/booking/views.py b/src/booking/views.py
index 3c95e07..bd57812 100644
--- a/src/booking/views.py
+++ b/src/booking/views.py
@@ -173,7 +173,7 @@ def booking_modify_image(request, booking_id):
if timezone.now() > booking.end:
return HttpResponse("unauthorized")
new_image = Image.objects.get(id=form.cleaned_data['image_id'])
- host = ResourceQuery.get(labid=form.cleaned_data['host_id'])
+ host = ResourceQuery.get(id=form.cleaned_data['host_id'])
host.config.image = new_image
host.config.save()
JobFactory.reimageHost(new_image, booking, host)