ansible / ansible-modules-extras

Ansible extra modules - these modules ship with ansible
947 stars 1.47k forks source link

locale_gen fails with python3 #3694

Closed gnotari closed 7 years ago

gnotari commented 7 years ago

using Ansible 2.2.0.0 pipelining = True

passing option -e 'ansible_python_interpreter=/usr/bin/python3'

fatal: [192.168.239.194]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to 192.168.239.194 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_lhviwmqc/ansible_module_locale_gen.py\", line 239, in <module>\r\n main()\r\n File \"/tmp/ansible_lhviwmqc/ansible_module_locale_gen.py\", line 217, in main\r\n if is_present(name):\r\n File \"/tmp/ansible_lhviwmqc/ansible_module_locale_gen.py\", line 96, in is_present\r\n return any(fix_case(name) == fix_case(line) for line in output.splitlines())\r\n File \"/tmp/ansible_lhviwmqc/ansible_module_locale_gen.py\", line 96, in <genexpr>\r\n return any(fix_case(name) == fix_case(line) for line in output.splitlines())\r\n File \"/tmp/ansible_lhviwmqc/ansible_module_locale_gen.py\", line 101, in fix_case\r\n for s, r in LOCALE_NORMALIZATION.iteritems():\r\nAttributeError: 'dict' object has no attribute 'iteritems'\r\n", "msg": "MODULE FAILURE"}

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.