Commit a188968e authored by ibuler's avatar ibuler

[Update] 修复Model过长的bug

parent 3c981419
...@@ -94,7 +94,7 @@ def set_assets_hardware_info(assets, result, **kwargs): ...@@ -94,7 +94,7 @@ def set_assets_hardware_info(assets, result, **kwargs):
break break
else: else:
___cpu_model = 'Unknown' ___cpu_model = 'Unknown'
___cpu_model = ___cpu_model[:64] ___cpu_model = ___cpu_model[:48]
___cpu_count = info.get('ansible_processor_count', 0) ___cpu_count = info.get('ansible_processor_count', 0)
___cpu_cores = info.get('ansible_processor_cores', None) or \ ___cpu_cores = info.get('ansible_processor_cores', None) or \
len(info.get('ansible_processor', [])) len(info.get('ansible_processor', []))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment