[pmon] Run ledd using python3 unless excluded #6528
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
- Why I did it
Ledd is the last daemon that is not enabled to run in python3.
Even though there is a plan to deprecate this daemon and to replace it by something else it's one simple step toward python2 deprecation.
- How I did it
Changed the
command=
line forledd
in thesupervisord
configuration ofpmon
.Copied what was done for other daemons.
- How to verify it
Booting a product that has a
led_control.py
should now show the ledd running in python3.I ran
python3 -m pylint
on allled_control.py
plugin which means that most of them should be python3 compliant.There is however still a risk that some might not work.
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
Run ledd in python3 unless excluded by the platform