Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in check mode using upgrade:yes #42

Closed
ellingtonsantos opened this issue Jun 10, 2020 · 2 comments
Closed

Error in check mode using upgrade:yes #42

ellingtonsantos opened this issue Jun 10, 2020 · 2 comments

Comments

@ellingtonsantos
Copy link

with this playbook:


  • hosts: localhost
    tasks:
    • name: Update archlinux
      aur:
      upgrade: yes
      state: latest

I get this error in check mode (ansible-playbook -C):

The full traceback is:
Traceback (most recent call last):
File "/home/ellton/.ansible/tmp/ansible-tmp-1591791499.424747-1888790-158389577016436/AnsiballZ_aur.py", line 102, in
_ansiballz_main()
File "/home/ellton/.ansible/tmp/ansible-tmp-1591791499.424747-1888790-158389577016436/AnsiballZ_aur.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/ellton/.ansible/tmp/ansible-tmp-1591791499.424747-1888790-158389577016436/AnsiballZ_aur.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.aur', init_globals=None, run_name='main', alter_sys=True)
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 313, in
File "/tmp/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 309, in main
File "/tmp/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 300, in apply_module
File "/tmp/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 126, in check_packages
TypeError: 'NoneType' object is not iterable
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File "/home/ellton/.ansible/tmp/ansible-tmp-1591791499.424747-1888790-158389577016436/AnsiballZ_aur.py", line 102, in \n _ansiballz_main()\n File "/hom
e/ellton/.ansible/tmp/ansible-tmp-1591791499.424747-1888790-158389577016436/AnsiballZ_aur.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/home/ellton/.ansible/tmp/ansibl
e-tmp-1591791499.424747-1888790-158389577016436/AnsiballZ_aur.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.aur', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib/pyt
hon3.8/runpy.py", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globa
ls,\n File "/usr/lib/python3.8/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 313, in \n File "/tmp
/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 309, in main\n File "/tmp/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 300, in apply_module\n File
"/tmp/ansible_aur_payload_vovp83ji/ansible_aur_payload.zip/ansible/modules/aur.py", line 126, in check_packages\nTypeError: 'NoneType' object is not iterable\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}

@kewlfft
Copy link
Owner

kewlfft commented Aug 8, 2020

see c2fd7b3 let me know if it is working for you

@ellingtonsantos
Copy link
Author

It is working! TY

@kewlfft kewlfft closed this as completed Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants