From: Sawyer Bergeron Date: Mon, 12 Apr 2021 14:39:00 +0000 (-0400) Subject: Fix errant change in admin_utils.booking_for_host X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F72365%2F1;p=laas.git Fix errant change in admin_utils.booking_for_host Signed-off-by: Sawyer Bergeron Change-Id: I5dcd6b773638961a315baccd335745824a25b9c9 --- diff --git a/src/dashboard/admin_utils.py b/src/dashboard/admin_utils.py index 186a64f..b105e96 100644 --- a/src/dashboard/admin_utils.py +++ b/src/dashboard/admin_utils.py @@ -281,7 +281,7 @@ def booking_for_host(host_labid: str, lab_username="unh_iol"): @lab_username: param of the form `unh_iol` or similar """ - server = Server.objects.get(lab__lab_user__username=lab_username, lab_username=host_labid) + server = Server.objects.get(lab__lab_user__username=lab_username, labid=host_labid) booking = server.bundle.booking_set.first() print_div() print(booking)