icinga2-diagnostics
icinga2-diagnostics copied to clipboard
Make OS detection work with Python 3
The systemd compatible way of running hostnamectl and parsing the output works only with Python 2 so far.
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.