Update removed platform.linux_distribution
funtion call in Python 3.8
#5433
Labels
Hacktoberfest
Issues suitable for the annual Hacktoberfest organized by Digital Ocean
help wanted
Issues we would definitely appreciate volunteer help with
Description
We are using platform.linux_distribution function in our metadata endpoint. But, this function was deprecated from Python3.5 and totally removed from Python 3.8.
Solution
We can directly read the
/etc/lsb-release
and/etc/os-release
file as required.The text was updated successfully, but these errors were encountered: