summaryrefslogtreecommitdiffstats
path: root/src/workflow/workflow_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/workflow/workflow_manager.py')
-rw-r--r--src/workflow/workflow_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/workflow/workflow_manager.py b/src/workflow/workflow_manager.py
index 4677829..fda105e 100644
--- a/src/workflow/workflow_manager.py
+++ b/src/workflow/workflow_manager.py
@@ -189,7 +189,7 @@ class SessionManager():
models['bundle'] = resource
models['interfaces'] = {}
models['vlans'] = {}
- for host in resource.getHosts():
+ for host in resource.getResources():
models['hosts'].append(host)
models['interfaces'][host.resource.name] = []
models['vlans'][host.resource.name] = {}
@@ -205,7 +205,7 @@ class SessionManager():
confirm['resource'] = {}
confirm['resource']['hosts'] = []
confirm['resource']['lab'] = resource.lab.lab_user.username
- for host in resource.getHosts():
+ for host in resource.getResources():
confirm['resource']['hosts'].append({"name": host.resource.name, "profile": host.profile.name})
return confirm