-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
Documentation states this should return "amazon" as the ID but distro.id() is returning "amzn" instead.
Distro version 1.4
(base) [nnd-user:~]$ pip install distro
Collecting distro
Using cached https://files.pythonhosted.org/packages/ea/35/82f79b92fa4d937146c660a6482cee4f3dfa1f97ff3d2a6f3ecba33e712e/distro-1.4.0-py2.py3-none-any.whl
Installing collected packages: distro
Successfully installed distro-1.4.0
(base) [nnd-user:~]$ python
Python 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distro
>>> distro.id()
'amzn'
>>> distro.version()
'2018.03'
>>> exit()
/etc/os-release contents
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"```
Reactions are currently unavailable