From 586110a27dc11e89a5ff3552f3215e8a0716aa92 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Fri, 5 May 2017 16:51:02 -0400 Subject: Adding conditionals dependent on arch There are x86 specific build items that can't be used when building on aarch64. Adding conditionals so that the items only get built in when building on x86_64. There are aarch64 specific settings that need to be set for deployment. JIRA: APEX-381 Change-Id: I63e1c99d5d22bbb523c88be7e973a6c834a38b01 Signed-off-by: Dan Radez --- lib/python/apex/inventory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/python') diff --git a/lib/python/apex/inventory.py b/lib/python/apex/inventory.py index 2e08d3b9..64f47b49 100644 --- a/lib/python/apex/inventory.py +++ b/lib/python/apex/inventory.py @@ -9,6 +9,7 @@ import yaml import json +import platform from .common import constants from .common import utils @@ -67,7 +68,7 @@ class Inventory(dict): 'for non-HA baremetal deployment') if virtual: - self['arch'] = 'x86_64' + self['arch'] = platform.machine() self['host-ip'] = '192.168.122.1' self['power_manager'] = \ 'nova.virt.baremetal.virtual_power_driver.VirtualPowerManager' -- cgit 1.2.3-korg