From f47a756c4627c96d76076e05eef311bea4fdb5fb Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 26 Mar 2016 09:19:47 +0100 Subject: [PATCH] Add proper type to cpanm arguments from_path, locallib, executable should be path to benefits from path expansion for ~user. --- lib/ansible/modules/extras/packaging/language/cpanm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/language/cpanm.py b/lib/ansible/modules/extras/packaging/language/cpanm.py index a017aaf5791..919677466ab 100644 --- a/lib/ansible/modules/extras/packaging/language/cpanm.py +++ b/lib/ansible/modules/extras/packaging/language/cpanm.py @@ -170,15 +170,15 @@ def _get_cpanm_path(module): def main(): arg_spec = dict( name=dict(default=None, required=False, aliases=['pkg']), - from_path=dict(default=None, required=False), + from_path=dict(default=None, required=False, type='path'), notest=dict(default=False, type='bool'), - locallib=dict(default=None, required=False), + locallib=dict(default=None, required=False, type='path'), mirror=dict(default=None, required=False), mirror_only=dict(default=False, type='bool'), installdeps=dict(default=False, type='bool'), system_lib=dict(default=False, type='bool', aliases=['use_sudo']), version=dict(default=None, required=False), - executable=dict(required=False, type='str'), + executable=dict(required=False, type='path'), ) module = AnsibleModule(