From 67245c0800247326dffffd60edfb40ba13883a34 Mon Sep 17 00:00:00 2001 From: Alexei Znamensky Date: Thu, 20 Apr 2023 22:28:06 +1200 Subject: [PATCH 1/2] cpanm: apply MH feature --- plugins/modules/cpanm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/cpanm.py b/plugins/modules/cpanm.py index b3d63e1fb1a..6260992dfed 100644 --- a/plugins/modules/cpanm.py +++ b/plugins/modules/cpanm.py @@ -183,7 +183,7 @@ def __init_module__(self): if v.name and v.from_path: self.do_raise("Parameters 'name' and 'from_path' are mutually exclusive when 'mode=new'") - self.command = self.module.get_bin_path(v.executable if v.executable else self.command) + self.command = self.get_bin_path(v.executable if v.executable else self.command) self.vars.set("binary", self.command) def _is_package_installed(self, name, locallib, version): From 9ab70fc1f4dbc52df0df22552ba333594f065699 Mon Sep 17 00:00:00 2001 From: Alexei Znamensky Date: Thu, 20 Apr 2023 22:39:57 +1200 Subject: [PATCH 2/2] add changelog frag --- changelogs/fragments/6385-cpan-mh-feat.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/6385-cpan-mh-feat.yml diff --git a/changelogs/fragments/6385-cpan-mh-feat.yml b/changelogs/fragments/6385-cpan-mh-feat.yml new file mode 100644 index 00000000000..41944b60f82 --- /dev/null +++ b/changelogs/fragments/6385-cpan-mh-feat.yml @@ -0,0 +1,2 @@ +minor_changes: + - cpanm - minor change, use feature from ``ModuleHelper`` (https://github.com/ansible-collections/community.general/pull/6385).