aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/snapshot_workflow.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-11-12 12:54:20 -0500
committerBrandon Lo <lobrandon1217@gmail.com>2020-01-28 13:28:34 -0500
commit899e1a4baa95d0bc6f0eef34de66f0e257174878 (patch)
tree2fbc99070b2fe2d75135ca5f899ed14b12639856 /src/workflow/snapshot_workflow.py
parent30a535d7e9bdc0e3cf637207c0c100a16db81586 (diff)
Begin Resource Refactor
Begins the Resource Refactor by creating new interfaces to the resources through a Resource super class and using that new interface in the api Change-Id: I15a8179bfe915d2cde6d658d056e11cbd2c70e43 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/workflow/snapshot_workflow.py')
-rw-r--r--src/workflow/snapshot_workflow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/workflow/snapshot_workflow.py b/src/workflow/snapshot_workflow.py
index 4266587..c2f4cd6 100644
--- a/src/workflow/snapshot_workflow.py
+++ b/src/workflow/snapshot_workflow.py
@@ -36,7 +36,7 @@ class Select_Host_Step(WorkflowStep):
booking_hosts[booking.id]['start'] = booking.start.strftime("%Y-%m-%d")
booking_hosts[booking.id]['end'] = booking.end.strftime("%Y-%m-%d")
booking_hosts[booking.id]['hosts'] = []
- for genericHost in booking.resource.template.getHosts():
+ for genericHost in booking.resource.template.getResources():
booking_hosts[booking.id]['hosts'].append({"name": genericHost.resource.name})
context['booking_hosts'] = booking_hosts