diff options
author | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2016-03-18 10:26:37 +0100 |
---|---|---|
committer | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2016-03-18 13:28:54 +0100 |
commit | 25ec9b6a9bfc20f8b5379af71292fd49b8cce12a (patch) | |
tree | b5b6d36024ef3f4e833fe60d9676d692deb27fc7 /deploy/dha_adapters/hardware_adapter.py | |
parent | bf2a65a28572c90484d0c5668274485721d0f1c7 (diff) |
Configure the infra VMs over DHA
This commit enables the full configuration
of the VM(fuel/controller/compute)
defintion through the dha file.
Change-Id: I4e78334d1e5aec1e98667343390283587f0b3ea5
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) |