Skip to content

Update removed platform.linux_distribution funtion call in Python 3.8 #5433

@kushaldas

Description

@kushaldas

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.

Metadata

Metadata

Assignees

Labels

HacktoberfestIssues suitable for the annual Hacktoberfest organized by Digital Oceanhelp wantedIssues we would definitely appreciate volunteer help with

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions