mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cpanm: apply MH feature (#6385)
* cpanm: apply MH feature * add changelog frag
This commit is contained in:
parent
0eb33c2839
commit
ad6ff9b0c5
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/6385-cpan-mh-feat.yml
Normal file
2
changelogs/fragments/6385-cpan-mh-feat.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- cpanm - minor change, use feature from ``ModuleHelper`` (https://github.com/ansible-collections/community.general/pull/6385).
|
|
@ -183,7 +183,7 @@ class CPANMinus(ModuleHelper):
|
|||
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):
|
||||
|
|
Loading…
Reference in a new issue