Skip to content

(Backport 53326) core.py: ignore wrong product_name files#53441

Closed
aplanas wants to merge 2 commits into
saltstack:neonfrom
aplanas:backport_53326
Closed

(Backport 53326) core.py: ignore wrong product_name files#53441
aplanas wants to merge 2 commits into
saltstack:neonfrom
aplanas:backport_53326

Conversation

@aplanas
Copy link
Copy Markdown
Contributor

@aplanas aplanas commented Jun 11, 2019

Some firmwares (like some NUC machines), do not provide valid
/sys/class/dmi/id/product_name strings. In those cases an
UnicodeDecodeError exception happens.

This patch ignore this kind of issue during the grains creation.

(backport #53326)

@aplanas aplanas requested a review from a team as a code owner August 23, 2019 08:08
@ghost ghost requested a review from DmitryKuzmenko August 23, 2019 08:08
Some firmwares (like some NUC machines), do not provide valid
/sys/class/dmi/id/product_name strings. In those cases an
UnicodeDecodeError exception happens.

This patch ignore this kind of issue during the grains creation.

(cherry picked from commit 35a0c1cd20297479f83a2564dbece3145c0e5a3d)
(cherry picked from commit 56196b739314b19433a6b8d5acbf96d9c70f1bc1)
@aplanas
Copy link
Copy Markdown
Contributor Author

aplanas commented Oct 14, 2019

Rebased on master as part of #53441

@aplanas aplanas closed this Oct 14, 2019
@aplanas aplanas deleted the backport_53326 branch October 14, 2019 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants