community.general/lib/ansible/module_utils/facts/system
Adrian Likins 65393e4747 Fix ansible_distribution on Ubuntu 10.04 (#31108)
The /etc/os-release based distro detection doesn't
seem to work for Ubuntu 10.04 (no /etc/os-release?).

So it was testing the next case which was /etc/lsb-release to
see if it is 'Mandriva'. Since the check for existence of
(/etc/lsb-release, Mandrive) was the first non-empty dist
file match, 'ansible_distribution' was being set to 'Mandriva'
expecting to be corrected by the data from the dist file content.

But since the dist file parsing for Mandriva didn't match for
Ubuntu 10.04 /etc/lsb-release _and_ there is no Debian specific
lsb-release check, 'ansible_distribution' stayed at 'Mandriva'
and the dist file checking loop keeps going and eventually off
the end of the list before finding a better match.

Adding a debian/ubuntu specific check for /etc/lsb-release after
the debian os-release sets the info correctly and stops further
checking of dist files.

Fixes #30693
2017-10-03 15:32:33 -04:00
..
__init__.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
apparmor.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
caps.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
chroot.py start of 'is chroot' fact 2017-09-18 16:16:41 -04:00
cmdline.py Cmdline fact uefi 23647 (#25446) 2017-06-08 16:03:29 -04:00
date_time.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
distribution.py Fix ansible_distribution on Ubuntu 10.04 (#31108) 2017-10-03 15:32:33 -04:00
dns.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
env.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
fips.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
local.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
lsb.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
pkg_mgr.py Fix pkg_mgr fact on OpenBSD (#30725) 2017-09-22 14:22:05 -04:00
platform.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
python.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
selinux.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
service_mgr.py Make ServiceMgrFactCollector.is_systemd_managed() a static method (#25316) 2017-06-05 09:39:05 -04:00
ssh_pub_keys.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
user.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00