[Update] ansible disk bug

pull/968/head
ibuler 2018-01-26 16:06:36 +08:00
parent f0b9a11482
commit 9e36a2cbb1
1 changed files with 1 additions and 1 deletions

View File

@ -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():