Skip to content
New issue

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

Make OS detection work with Python 3 #90

Open
widhalmt opened this issue Nov 7, 2019 · 1 comment
Open

Make OS detection work with Python 3 #90

widhalmt opened this issue Nov 7, 2019 · 1 comment
Labels
bug Python Rewrite in Python
Milestone

Comments

@widhalmt
Copy link
Member

widhalmt commented Nov 7, 2019

The systemd compatible way of running hostnamectl and parsing the output works only with Python 2 so far.

@widhalmt widhalmt added bug Python Rewrite in Python labels Nov 7, 2019
@widhalmt widhalmt added this to the 0.2 milestone Nov 7, 2019
@KevinHonka
Copy link

Hey there,
I would not recommend using hostnamectl as it is not consistent on different systems.
The better way would be to use the built in platform library of python.
It should be working with python 2 up to 3.8 and on all known platforms where Python runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Python Rewrite in Python
Projects
None yet
Development

No branches or pull requests

2 participants