Skip to content

Commit

Permalink
Fix missing cpu_type key for VMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sheagcraig committed Sep 16, 2019
1 parent 715c6e1 commit b736a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payload/usr/local/sal/checkin_modules/machine_checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit b736a48

Please sign in to comment.