community.general/lib/ansible
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
..
cli Revert "Make ansible doesn't parse template-like password in user's input (#42275)" 2018-07-11 09:30:42 -07:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config pr 42271 - fixed merge conflicts 2018-07-20 11:22:30 -04:00
errors give hint to users when a file is not found 2018-04-10 17:19:03 -04:00
executor changed winrm _reset to reset and make ssh reset show warning (#42651) 2018-07-11 20:22:01 -07:00
galaxy Fix invalid Dockerfile created by "galaxy init --type apb" (#42017) 2018-07-17 08:11:42 +05:30
inventory Error on empty group/host name (#42584) 2018-07-12 09:59:00 -04:00
module_utils Fix pkg_mgr_name fact finding for Fedora (#40922) 2018-07-23 10:56:09 -04:00
modules Explicitly pass HTTP method to fetch_url 2018-07-23 07:42:19 -07:00
parsing change OS X to macOS (#41294) 2018-06-26 14:09:23 -04:00
playbook Fix multiple var files combining (followup to #36357) 2018-07-20 09:29:20 -04:00
plugins Don't close persistent connection socket on command timeout (#43071) 2018-07-23 07:07:06 +05:30
template When using ANSIBLE_JINJA2_NATIVE bypass our None filtering in _finalze (#41408) 2018-06-12 08:46:23 -05:00
utils Fix ssl_version default value. (#42955) 2018-07-20 11:32:04 -04:00
vars Mark vars from facts cache as unsafe (fixes #42656) (#42682) 2018-07-13 11:15:03 -05:00
__init__.py
constants.py Fix fact cleaning (#42595) 2018-07-12 16:12:42 -04:00
release.py update 2.7 codename 2018-05-31 15:46:07 -07:00