aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-12-08 15:49:31 -0500
committerSawyer Bergeron <sbergeron@iol.unh.edu>2020-12-09 15:17:24 -0500
commit14ad65c2e83f680246c1bf06573e3fcb19cdaa06 (patch)
tree29a1c4e85556a19d14dfcc064f0e791a2fa0bf24 /src/resource_inventory
parent38152cc83eba4f8aa457dd35c824d042124cddd6 (diff)
Update booking detail page and API after model refactor
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I2d1d5d7031c82a2088aa68b772c7bbdf225f3c9a Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/resource_inventory')
-rw-r--r--src/resource_inventory/models.py2
1 files changed, 1 insertions, 1 deletions
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)
}