ansible/test/units
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
..
cli Don't ask for password confirm on 'ansible-vault edit' (#30514) 2017-09-19 17:39:51 -04:00
contrib Update vmware_inventory (#26308) 2017-07-18 07:20:23 -04:00
errors
executor Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
inventory_test_data/group_vars
mock Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
module_utils Fix ansible_distribution on Ubuntu 10.04 (#31108) 2017-10-03 15:32:33 -04:00
modules LogicalInterconnectGroupFactsModule for HPE OneView (#28847) 2017-10-02 16:35:27 -04:00
parsing Use vault_id when encrypted via vault-edit (#30772) 2017-09-26 12:28:31 -04:00
playbook less confusing 'args' message (#29053) 2017-09-06 18:20:06 -04:00
plugins Feature/test inventory (#30707) 2017-10-02 23:01:25 -07:00
template template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
utils
vars Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
__init__.py
conftest.py
test_constants.py