We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sensor_facts
Description The sensor_facts ansible library treats the output of Popen.communicate() as a string but it is now a bytes array in Python 3.
Popen.communicate()
See here for details: https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate
Steps to reproduce the issue:
test_sensors
Describe the results you received: Test fails during collection of sensor facts from ansible with TypeError: expected bytes-like object, not str
TypeError: expected bytes-like object, not str
Describe the results you expected: Test succeeds.
Note: This failure only occurs on images where Python 3 is the default interpreter such as the bullseye builds
The text was updated successfully, but these errors were encountered:
@saiarcot895 FYI
Sorry, something went wrong.
Add Python 3 support to sensors_facts.py and sonic_release.py
9715596
Fixes sonic-net#4514 Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Add Python 3 support to sensors_facts.py and sonic_release.py (#4612)
9de46bd
Fixes #4514 Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Successfully merging a pull request may close this issue.
Description
The
sensor_facts
ansible library treats the output ofPopen.communicate()
as a string but it is now a bytes array in Python 3.See here for details: https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate
Steps to reproduce the issue:
test_sensors
testDescribe the results you received:
Test fails during collection of sensor facts from ansible with
TypeError: expected bytes-like object, not str
Describe the results you expected:
Test succeeds.
Note: This failure only occurs on images where Python 3 is the default interpreter such as the bullseye builds
The text was updated successfully, but these errors were encountered: