diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-11-12 12:54:20 -0500 |
---|---|---|
committer | Brandon Lo <lobrandon1217@gmail.com> | 2020-01-28 13:28:34 -0500 |
commit | 899e1a4baa95d0bc6f0eef34de66f0e257174878 (patch) | |
tree | 2fbc99070b2fe2d75135ca5f899ed14b12639856 /src/workflow/workflow_manager.py | |
parent | 30a535d7e9bdc0e3cf637207c0c100a16db81586 (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/workflow_manager.py')
-rw-r--r-- | src/workflow/workflow_manager.py | 4 |
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 |