variant value is "unknown" on FreeBSD when invoking util.system_info()
Bug #1698077 reported by
Hongjiang Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When I run "python3 tools/render-
platform.platform() gets "FreeBSD-
if plat.startswith
elif plat.endswith(
tags: | added: freebsd |
Changed in cloud-init: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
To post a comment you must log in.
this seems to be fixed (although i cannot tell since when)
``` 801/final 366581)] on freebsd12 12.2-RELEASE- amd64-64bit- ELF', 'system': 'FreeBSD', 'release': '12.2-RELEASE', 'python': '3.7.9', 'uname': ['FreeBSD', 'fbsd12-1', '12.2-RELEASE', 'FreeBSD 12.2-RELEASE r366954 GENERIC', 'amd64', 'amd64'], 'dist': ('freebsd', '12.2', ''), 'variant': 'freebsd'} info()[ 'variant' ]
Python 3.7.9 (default, Oct 3 2020, 01:29:35)
[Clang 8.0.1 (tags/RELEASE_
Type "help", "copyright", "credits" or "license" for more information.
>>> import cloudinit
>>> from cloudinit import util
>>> util.system_info()
{'platform': 'FreeBSD-
>>> util.system_
'freebsd'
>>>
```