mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add TypeError
This commit is contained in:
parent
5b4160d122
commit
0fc88fb437
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ def get_system_info():
|
|||
ret['processor_cores'] += system.NumberOfCores
|
||||
try:
|
||||
ret['processor_cores_enabled'] += system.NumberOfEnabledCore
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
pass
|
||||
if ret['processor_cores_enabled'] == 0:
|
||||
ret.pop('processor_cores_enabled', False)
|
||||
|
|
Loading…
Add table
Reference in a new issue