mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 |
8 years ago | |
|---|---|---|
| .. | ||
| cli | 8 years ago | |
| contrib | 9 years ago | |
| errors | 9 years ago | |
| executor | 8 years ago | |
| inventory_test_data/group_vars | 11 years ago | |
| mock | 8 years ago | |
| module_utils | 8 years ago | |
| modules | 8 years ago | |
| parsing | 8 years ago | |
| playbook | 8 years ago | |
| plugins | 8 years ago | |
| template | 8 years ago | |
| utils | 9 years ago | |
| vars | 8 years ago | |
| __init__.py | 9 years ago | |
| conftest.py | 9 years ago | |
| test_constants.py | 9 years ago | |