community.general/lib/ansible/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
2017-10-03 15:32:33 -04:00
..
aws Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
facts Fix ansible_distribution on Ubuntu 10.04 (#31108) 2017-10-03 15:32:33 -04:00
parsing also strip strings to avoid spaces breaking match 2017-08-23 16:01:02 -04:00
powershell CamelConverter - more fixes picked up in testing (#30601) 2017-09-20 15:17:26 +10:00
six Update the bundled six library to 1.11.0 2017-09-17 22:00:02 -07:00
__init__.py
_text.py
a10.py
aci.py Fix typo 2017-09-09 20:26:21 +02:00
aireos.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
ansible_tower.py ansible_tower: fix broken import, reuse tower_argument_spec and documentation fragment (#29115) 2017-10-02 16:21:24 -04:00
aos.py Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
api.py
aruba.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
asa.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
avi.py module_utils/avi.py: fix broken import 2017-09-14 10:59:25 -07:00
azure_rm_common.py Feature to Specify AZURE blob storage type (#30660) 2017-09-22 10:17:00 -07:00
basic.py Reduce chance of mistakes with unsafe_shell check during refactor 2017-09-28 16:48:22 -07:00
bigswitch_utils.py
ce.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
cloud.py AWSRetry: allow retrying on additional ClientError exceptions (#28483) 2017-08-22 15:31:20 -04:00
cloudstack.py cs_volume: fix CloudStackException dependency (#30389) 2017-09-15 20:40:28 +02:00
cnos.py Resolving bug on CNOS Image download on multiple devices. 2017-09-16 10:53:21 -07:00
cnos_devicerules.py
cnos_errorcodes.py
connection.py Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
crypto.py openssl: remove static dict for keyUsage (#30339) 2017-09-14 12:03:00 -04:00
database.py
dellos6.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
dellos9.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
dellos10.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
digital_ocean.py Fix digital_ocean module_util api_token bug (#28924) 2017-09-06 07:14:10 -07:00
dimensiondata.py
docker_common.py docker_secret: fix broken import 2017-08-12 10:16:05 -07:00
ec2.py [cloud] Improve boto3_tag_list_to_ansible_dict backward compatibility (#30622) 2017-09-27 11:27:26 -04:00
eos.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
exoscale.py exoscale: similar env vars as in cloudstack 2017-08-22 14:43:48 +02:00
f5_utils.py
fortios.py Use ansible network env vars to authentication on fortigates (#29499) 2017-09-13 12:44:41 +01:00
gcdns.py
gce.py
gcp.py Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
infinibox.py
ios.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
iosxr.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
ipa.py shared argument spec for FreeIPA (#28950) 2017-09-07 21:07:15 +02:00
ismount.py
json_utils.py
junos.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
k8s_common.py
known_hosts.py
lxd.py
manageiq.py move manageiq_entities to module utils 2017-09-29 12:54:48 +02:00
mysql.py
netapp.py
netcfg.py
netcli.py
netconf.py
netscaler.py Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
network.py Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
network_common.py fixes issue where filter wouldn't error on undefined var (#30921) 2017-09-26 11:50:57 -07:00
nxos.py - Fix to return error message back to the module. (#31035) 2017-09-29 17:06:30 +05:30
oneview.py Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
openshift_common.py
openstack.py
ordnance.py Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
ovirt.py module_utils/ovirt.py: fix broken import 2017-09-08 22:12:00 -07:00
postgres.py Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
pure.py
pycompat24.py
rax.py
redhat.py Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
service.py
splitter.py
sros.py Update removed_in_version to 2.9 for network module top level cred args (#30416) 2017-09-15 21:20:07 +05:30
univention_umc.py
urls.py module_utils.urls - Encode the proxy connect as binary (#30811) 2017-09-29 14:32:29 -07:00
vca.py Use response.content instead of response object (#25772) 2017-08-14 12:40:06 -04:00
vmware.py New module - vmware_guest_powerstate 2017-10-02 18:57:44 +02:00
vyos.py Remove check_args for vyos modules (#30739) 2017-09-22 15:56:23 +05:30