community.general/lib/ansible/module_utils
Adam Miller 562ff66a98 Fix pkg_mgr_name fact finding for Fedora (#40922)
* Properly handle default package manager vs apt

For distros where apt might be installed but is not the default
package manager for the distro, properly identify the default distro
package manager during fact finding and re-use fact finding from
DistributionFactCollector and instead of reimplementing small
portions of it in PkgMgrFactCollector

Add unit test to always check the apt + Fedora combination to test
the new code.

Fixes #34014

Signed-off-by: Adam Miller <admiller@redhat.com>

* remove q debugging output I accidentally left behind

Signed-off-by: Adam Miller <admiller@redhat.com>

* add os_family to the conditional so we're only hitting that code path when needed

Signed-off-by: Adam Miller <admiller@redhat.com>

* setup for a _check* pattern for general os_family group pkg_mgr checking

Signed-off-by: Adam Miller <admiller@redhat.com>

* use Mock.patch decorator for os.path.exists in TestPkgMgrFactsAptFedora

Signed-off-by: Adam Miller <admiller@redhat.com>
2018-07-23 10:56:09 -04:00
..
aws [aws] Add missing methods to AnsibleAWSModule (#42679) 2018-07-12 09:47:28 -04:00
common Provide kubernetes definition diffs in check_mode (#41471) 2018-07-11 16:32:03 +10:00
compat Adds the ipaddress compat library backport from Python 3.x (#42265) 2018-07-17 11:37:23 -07:00
facts Fix pkg_mgr_name fact finding for Fedora (#40922) 2018-07-23 10:56:09 -04:00
k8s Add merge_type parameter to k8s module (#42219) 2018-07-22 21:05:25 -07:00
net_tools Add the NIOS RECORD PTR Module (#41900) 2018-07-11 23:55:28 +05:30
network Don't close persistent connection socket on command timeout (#43071) 2018-07-23 07:07:06 +05:30
parsing Improve convert_bool error message 2018-02-12 13:05:38 -05:00
powershell Make the code more PowerShell compliant (#39464) 2018-07-16 11:34:01 +10:00
remote_management Connection and MAC pool module for Cisco UCS (#31151) 2017-12-14 19:38:35 +01:00
six Update the bundled six library to 1.11.0 2017-09-17 22:00:02 -07:00
__init__.py Enhance empty __init__ code-smell to check module_utils (#33438) 2017-11-30 15:47:38 -08:00
_text.py Fix for to_text and to_bytes error handlers 2017-07-24 09:19:04 -07:00
acme.py ACME modules: documentation improvements (#42165) 2018-07-04 15:22:11 +02:00
ansible_release.py [AWS] Add Ansible Version to botocore user agent string (#39993) 2018-05-17 11:41:14 -04:00
ansible_tower.py Fix tower_* modules **params kwargs (#40137) 2018-05-25 18:03:12 -05:00
api.py Remove comments about import order 2017-08-07 19:46:06 -07:00
azure_rm_common.py fixed passing non-default base_url from explicitly set cloud_environment (#40225) 2018-06-07 14:53:05 +08:00
azure_rm_common_rest.py introducing azure_rm_resource (#39274) 2018-05-23 16:55:57 -07:00
basic.py better error messasge (#42770) 2018-07-19 12:13:09 -04:00
cloud.py AWSRetry: allow retrying on additional ClientError exceptions (#28483) 2017-08-22 15:31:20 -04:00
cloudscale.py cloudscale_floating_ip module (#33181) 2017-12-11 14:48:35 +00:00
cloudstack.py cloudstack: fix query tags by resourceid (#40482) 2018-05-21 17:16:44 +02:00
connection.py Let called functions use method keyword (#43086) 2018-07-22 15:26:44 -04:00
crypto.py Allow multiple values per key in name fields in openssl_certificate/csr (#30338) 2017-12-12 12:35:22 +00:00
database.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
digital_ocean.py Include Digital Ocean Token Alias (#36810) 2018-03-01 09:56:53 +05:30
dimensiondata.py dimensiondata: fix broken import (#35634) 2018-02-07 00:44:42 +01:00
docker_common.py Fix ssl_version default value. (#42955) 2018-07-20 11:32:04 -04:00
ec2.py [AWS] Add Ansible Version to botocore user agent string (#39993) 2018-05-17 11:41:14 -04:00
exoscale.py exo_dns_record: remove limitation for multiple records only for A type (#35173) 2018-02-05 22:40:02 +01:00
f5_utils.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
firewalld.py refactor firewalld module, add firewalld module_util (#37603) 2018-04-30 15:33:28 -05:00
gcdns.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
gce.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
gcp.py Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
gcp_utils.py GCP Inventory Plugin scopes fix 2018-06-08 13:04:37 -07:00
gitlab.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
heroku.py New module: heroku_collaborator (#39001) 2018-05-22 11:50:53 +02:00
infinibox.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
influxdb.py influxdb: Add condition for retries argument (#38441) 2018-04-15 22:05:51 -04:00
ipa.py FreeIPA: new module ipa_config (#42279) 2018-07-17 06:57:54 -04:00
ismount.py fix typo 2016-02-08 19:10:04 +01:00
json_utils.py jsonify inventory (#32990) 2017-11-21 13:41:27 -08:00
keycloak.py New module: keycloak_clienttemplate (#33419) 2018-01-31 13:12:53 +00:00
known_hosts.py Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
ldap.py LDAP: Refactor and add ldap_passwd module (#33040) 2018-04-27 15:54:05 +05:30
lxd.py Use to_text helper function to handle bytes and unicode 2017-06-05 11:58:19 -07:00
manageiq.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
memset.py New Memset module to request DNS reloads (#40390) 2018-05-25 00:30:25 +02:00
mysql.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
netapp.py Add Na_ontap_broadcast_domain module. (#39753) 2018-05-18 17:17:01 -07:00
oneandone.py New module: manage 1&1 public ip (cloud/oneandone/oneandone_public_ip) (#35079) 2018-02-07 12:15:27 -06:00
oneview.py DatacenterFactsModule for HPE OneView (#32701) 2017-11-28 13:49:51 +00:00
opennebula.py Fix opennebula test stub (#40436) 2018-05-25 07:42:14 +02:00
openstack.py openstack: Correct fail_json call in module_utils (#41064) 2018-06-04 10:18:15 +02:00
ovirt.py Fix PEP 8 issue. 2018-05-23 09:29:37 -07:00
postgres.py Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
pure.py Initial commit for Pure Storage FlashBlade module (#32467) 2018-02-22 15:33:48 -05:00
pycompat24.py Fix undefined variables, basestring usage, and some associated python3 issues 2017-07-25 15:58:23 -07:00
rax.py Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
redhat.py Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
scaleway.py Add a User-Agent string to the API request (#38587) 2018-05-14 09:55:47 -05:00
service.py sysvinit service module (#34962) 2018-05-17 17:32:27 -05:00
splitter.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
univention_umc.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
urls.py Only assume GET if no data, otherwise POST (#43133) 2018-07-23 07:30:10 -07:00
vca.py Use response.content instead of response object (#25772) 2017-08-14 12:40:06 -04:00
vmware.py vmware_vmotion: added storage vmotion capabilities. (#21421) 2018-07-17 20:43:30 +05:30
vmware_rest_client.py VMware: New module: vmware_tag (#37261) 2018-05-07 16:30:16 +05:30
vultr.py Vultr: Introducing vr_sshkey_facts module (#42615) 2018-07-18 09:53:58 +02:00