diff --git a/apps/assets/tasks.py b/apps/assets/tasks.py index 454dc5d19..3900de769 100644 --- a/apps/assets/tasks.py +++ b/apps/assets/tasks.py @@ -55,7 +55,7 @@ def set_assets_hardware_info(result, **kwargs): else: ___cpu_model = 'Unknown' ___cpu_count = info['ansible_processor_count'] - ___cpu_cores = info['ansible_processor_cores'] + ___cpu_cores = info.get('ansible_processor_cores', '') ___memory = '%s %s' % capacity_convert('{} MB'.format(info['ansible_memtotal_mb'])) disk_info = {} for dev, dev_info in info['ansible_devices'].items():