mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ee5a48b84d
One of the usual issue is that run_command return bytes, so we have to adapt the string to either be bytes too, or convert to string. This result into that kind of traceback: Traceback (most recent call last): File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 1009, in <module> main() File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 873, in main git_version_used = git_version(git_path, module) File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 788, in git_version rematch = re.search('git version (.*)$', out) File \"/usr/lib64/python3.5/re.py\", line 173, in search return _compile(pattern, flags).search(string) TypeError: cannot use a string pattern on a bytes-like object Another issue is filter being a object instead of a list. |
||
---|---|---|
.. | ||
ansible |