From b736a4806c8a2fdd1d21d4bedd53b64ea1b0a446 Mon Sep 17 00:00:00 2001 From: Shea Craig Date: Mon, 16 Sep 2019 11:44:20 -0400 Subject: [PATCH] Fix missing cpu_type key for VMs. --- payload/usr/local/sal/checkin_modules/machine_checkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payload/usr/local/sal/checkin_modules/machine_checkin.py b/payload/usr/local/sal/checkin_modules/machine_checkin.py index 76b8ec5..bfbb979 100755 --- a/payload/usr/local/sal/checkin_modules/machine_checkin.py +++ b/payload/usr/local/sal/checkin_modules/machine_checkin.py @@ -44,7 +44,7 @@ def process_system_profile(): friendly_model = get_friendly_model(machine_results['serial']) if friendly_model: machine_results['machine_model_friendly'] = friendly_model - machine_results['cpu_type'] = system_profile['SPHardwareDataType'][0]['cpu_type'] + machine_results['cpu_type'] = system_profile['SPHardwareDataType'][0].get('cpu_type', '') machine_results['cpu_speed'] = ( system_profile['SPHardwareDataType'][0]['current_processor_speed']) machine_results['memory'] = system_profile['SPHardwareDataType'][0]['physical_memory']