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.
ansible/test/units/module_utils
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
7 years ago
..
aws aws.core in new aws dir in module utils - module with AnsibleAWSModule class and fail_json_aws (#25780) 7 years ago
basic add custom module type validation (#27183) 7 years ago
cloud [cloud] Add more configurable backoff implementations to CloudRetry/AWSRetry (#27251) 7 years ago
ec2 AWSRetry: allow retrying on additional ClientError exceptions (#28483) 7 years ago
facts Fix fact failures cause by ordering of collectors (#30777) 7 years ago
gcp Fix dangerous default args. (#29839) 7 years ago
json_utils Enable more pylint rules and fix reported issues. (#30539) 7 years ago
parsing Consolidate boolean/mk_boolean conversion functions into a single location 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_aci.py Clean up ACI error text (#30501) 7 years ago
test_basic.py Fix fallback and boolean check in argspec (#27994) 7 years ago
test_database.py Revert "Update galaxy and database unit tests." 8 years ago
test_distribution_version.py Fix ansible_distribution on Ubuntu 10.04 (#31108) 7 years ago
test_known_hosts.py test/: PEP8 compliancy (#24803) 8 years ago
test_network_common.py adds new filter plugins for network use cases (#27695) 7 years ago
test_postgresql.py test/: PEP8 compliancy (#24803) 8 years ago
test_text.py test/: PEP8 compliancy (#24803) 8 years ago