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 3eab636b3f Fix 'distribution' fact for ArchLinux (#30723)
* Fix 'distribution' fact for ArchLinux

Allow empty wasn't breaking out of the process_dist_files
loop, so a empty /etc/arch-release would continue searching
and eventually try /etc/os-release. The os-release parsing
works, but the distro name there is 'Arch Linux' which does
not match the 2.3 behavior of 'Archlinux'

Add a OS_RELEASE_ALIAS map for the cases where we need to get
the distro name from os-release but use an alias.

We can't include 'Archlinux' in SEARCH_STRING because a name match on its keys
but without a match on the content causes a fallback to using the first
whitespace seperated item from the file content as the name.
For os-release, that is in form 'NAME=Arch Linux'

With os-release returning the right name, this also supports the
case where there is no /etc/arch-release, but there is a /etc/os-release

Fixes #30600

* pep8 and comment cleanup
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 pkg_mgr fact on OpenBSD (#30725) 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 'distribution' fact for ArchLinux (#30723) 7 years ago
test_known_hosts.py test/: PEP8 compliancy (#24803) 7 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) 7 years ago
test_text.py test/: PEP8 compliancy (#24803) 7 years ago