File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
tests/facts/server.LinuxDistribution Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ def get_distro_info(root_dir):
1212
1313 obj = distro .LinuxDistribution (include_lsb = False , include_uname = False )
1414
15+ # Fixes a bug in distro: https://github.com/python-distro/distro/issues/309
16+ obj ._uname_info = {}
17+
1518 # NOTE: The parsing of LinuxDistribution distro information is done in a lazy way.
1619 # This will force the parsing to happen before we restore the old value of _UNIXCONFDIR.
1720 _ = obj .info ()
Original file line number Diff line number Diff line change 1818 ],
1919 "fact" : {
2020 "name" : " Arch Linux" ,
21- "major" : 20 ,
22- "minor" : 6 ,
21+ "major" : null ,
22+ "minor" : null ,
2323 "release_meta" : {
2424 "NAME" : " Arch Linux" ,
2525 "PRETTY_NAME" : " Arch Linux" ,
You can’t perform that action at this time.
0 commit comments