aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-03-18 13:20:12 -0400
committerParker Berberian <pberberian@iol.unh.edu>2019-03-18 13:20:12 -0400
commiteaecaacd9332e1344dea479ae65e8c005990e0ea (patch)
treee5042555514ae38eda31f2defb6268257398d5a9 /src/resource_inventory
parent9cb0a4691e9e4bd30a0f68861942ac987b767bf1 (diff)
Fixes Booking List
Adds project collumn, removed Installer and Scenario, and correctly populates the operating system collumn. Change-Id: I8af778c66fa248832ad98188d0c93bbc84027c55 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/resource_inventory')
-rw-r--r--src/resource_inventory/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py
index 4e3974e..bdc1f5d 100644
--- a/src/resource_inventory/models.py
+++ b/src/resource_inventory/models.py
@@ -184,6 +184,9 @@ class ResourceBundle(models.Model):
return "Resource bundle " + str(self.id) + " with no template"
return "instance of " + str(self.template)
+ def get_host(self, role="Jumphost"):
+ return Host.objects.filter(bundle=self, config__opnfvRole__name=role).first()
+
# Networking