From b083edbfe00c31d782f55cff3bb624f3dc29cc6e Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 29 Jan 2019 19:59:43 +0100 Subject: [PATCH] HP-UX: Fix ansible_pkg_mgr to use swdepot (#51411) * HP-UX: Fix ansible_pkg_mgr to use swdepot * Revert to use /usr/sbin/swlist --- lib/ansible/module_utils/facts/system/pkg_mgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts/system/pkg_mgr.py b/lib/ansible/module_utils/facts/system/pkg_mgr.py index d2bb43d24c..ebb19944eb 100644 --- a/lib/ansible/module_utils/facts/system/pkg_mgr.py +++ b/lib/ansible/module_utils/facts/system/pkg_mgr.py @@ -27,7 +27,7 @@ PKG_MGRS = [{'path': '/usr/bin/yum', 'name': 'yum'}, {'path': '/usr/local/bin/brew', 'name': 'homebrew'}, {'path': '/sbin/apk', 'name': 'apk'}, {'path': '/usr/sbin/pkg', 'name': 'pkgng'}, - {'path': '/usr/sbin/swlist', 'name': 'HP-UX'}, + {'path': '/usr/sbin/swlist', 'name': 'swdepot'}, {'path': '/usr/bin/emerge', 'name': 'portage'}, {'path': '/usr/sbin/pkgadd', 'name': 'svr4pkg'}, {'path': '/usr/bin/pkg', 'name': 'pkg5'},