mirror of https://github.com/ansible/ansible.git
Make facts detection work on OpenBSD with Python3
The traceback is the following: Traceback (most recent call last): File \"/tmp/ansible_8s0bj604/ansible_module_setup.py\", line 134, in <module> main() File \"/tmp/ansible_8s0bj604/ansible_module_setup.py\", line 126, in main data = get_all_facts(module) File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 3641, in get_all_facts File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 3584, in ansible_facts File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 1600, in populate File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 1649, in get_memory_facts TypeError: translate() takes exactly one argument (2 given) And the swapctl output is this: # /sbin/swapctl -sk total: 83090 1K-blocks allocated, 0 used, 83090 available The only use of the code is to remove prefix in case they are present, so just replacing them with empty space is sufficient.pull/18387/merge
parent
bd6ac784bb
commit
df145df962
Loading…
Reference in New Issue