Skip to content

Commit

Permalink
Merge pull request #58 from salopensource/fix_vm_machine_module
Browse files Browse the repository at this point in the history
Fix missing cpu_type key for VMs.
  • Loading branch information
sheagcraig authored Sep 27, 2019
2 parents e0e05ee + b736a48 commit a7d55a8
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 a7d55a8

Please sign in to comment.