diff options
author | Daniel Smith <daniel.smith@ericsson.com> | 2016-04-05 15:38:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-04-05 15:38:09 +0000 |
commit | 27120b363ddd3df5474314204def6607871cad6e (patch) | |
tree | d93487ba282ddf4561460ad9ff1b69ab144b52a6 /deploy/dha_adapters/hardware_adapter.py | |
parent | eaf3af01c4bdede10bd89bb55c7d572cb424aa85 (diff) | |
parent | 25ec9b6a9bfc20f8b5379af71292fd49b8cce12a (diff) |
Merge "Configure the infra VMs over DHA"
Diffstat (limited to 'deploy/dha_adapters/hardware_adapter.py')
-rw-r--r-- | deploy/dha_adapters/hardware_adapter.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deploy/dha_adapters/hardware_adapter.py b/deploy/dha_adapters/hardware_adapter.py index 55bb4002e..aa59581ee 100644 --- a/deploy/dha_adapters/hardware_adapter.py +++ b/deploy/dha_adapters/hardware_adapter.py @@ -59,7 +59,7 @@ class HardwareAdapter(object): def get_disks(self): return self.dha_struct['disks'] - def get_number_cpus(self, role): - role_cpus_dict = self.dha_struct.get('number_cpus') - if role_cpus_dict: - return role_cpus_dict.get(role) + def get_vm_definition(self, role): + vm_definition = self.dha_struct.get('define_vms') + if vm_definition: + return vm_definition.get(role) |