From 14ad65c2e83f680246c1bf06573e3fcb19cdaa06 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Tue, 8 Dec 2020 15:49:31 -0500 Subject: Update booking detail page and API after model refactor Signed-off-by: Sawyer Bergeron Change-Id: I2d1d5d7031c82a2088aa68b772c7bbdf225f3c9a Signed-off-by: Sawyer Bergeron --- src/resource_inventory/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resource_inventory') diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py index 01da8bb..e2f2fea 100644 --- a/src/resource_inventory/models.py +++ b/src/resource_inventory/models.py @@ -345,7 +345,7 @@ class Server(Resource): return { "id": self.labid, "image": image, - "hostname": self.name, + "hostname": self.config.name, "power": power, "ipmi_create": str(ipmi) } -- cgit 1.2.3-korg