d66fa523bf
Changed implementation to strip tokens up until the first 'Size: ' string. This will allow for less parsing errors in the first six lines of the following output: "dmidecode --type 17 | grep Size" returns: Maximum Memory Module Size: 4096 MB Maximum Total Memory Size: 8192 MB Size: 2048 MB Size: 2048 MB Added a condition in the exception handling to address the issue of the bug on other outputs like: Installed Size: Not Installed Enabled Size: Not Installed Size: No Module Installed Size: 1024 MB Common strings like "No Module Installed" and "Not Installed" are normal. These two strings are hard coded in the before mentioned comparison and when found are logged as warnings instead of errors. Change-Id: If3475afcebfc7af7e9256b99924919557c4d909c Closes-Bug: #1521202
6 lines
182 B
YAML
6 lines
182 B
YAML
---
|
|
fixes:
|
|
- dmidecode output produces less parsing errors and logs
|
|
common and normal output like "No Module Installed" or
|
|
"Not Installed" in debug instead of error.
|