ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
838 stars 1.53k forks source link

cloudflare_dns issue #8174

Open Nirushen opened 8 months ago

Nirushen commented 8 months ago

Summary

The full traceback is:

Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-tmp-1711983525.1035323-113559-167603114503669/AnsiballZ_cloudflare_dns.py", line 102, in <module>
    _ansiballz_main()
  File "/root/.ansible/tmp/ansible-tmp-1711983525.1035323-113559-167603114503669/AnsiballZ_cloudflare_dns.py", line 94, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/root/.ansible/tmp/ansible-tmp-1711983525.1035323-113559-167603114503669/AnsiballZ_cloudflare_dns.py", line 40, in invoke_module
    runpy.run_module(mod_name='ansible_collections.community.general.plugins.modules.cloudflare_dns', init_globals=None, run_name='__main__', alter_sys=True)
  File "/usr/lib/python3.10/runpy.py", line 224, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/usr/lib/python3.10/runpy.py", line 96, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/tmp/ansible_cloudflare_dns_payload_5bsfgbda/ansible_cloudflare_dns_payload.zip/ansible_collections/community/general/plugins/modules/cloudflare_dns.py", line 949, in <module>
  File "/tmp/ansible_cloudflare_dns_payload_5bsfgbda/ansible_cloudflare_dns_payload.zip/ansible_collections/community/general/plugins/modules/cloudflare_dns.py", line 936, in main
  File "/tmp/ansible_cloudflare_dns_payload_5bsfgbda/ansible_cloudflare_dns_payload.zip/ansible_collections/community/general/plugins/modules/cloudflare_dns.py", line 650, in delete_dns_records
TypeError: 'NoneType' object is not iterable
fatal: [localhost]: FAILED! => {
    "changed": false,
    "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1711983525.1035323-113559-167603114503669/AnsiballZ_cloudflare_dns.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1711983525.1035323-113559-167603114503669/AnsiballZ_cloudflare_dns.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1711983525.1035323-113559-167603114503669/AnsiballZ_cloudflare_dns.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.community.general.plugins.modules.cloudflare_dns', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib/python3.10/runpy.py\", line 224, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_cloudflare_dns_payload_5bsfgbda/ansible_cloudflare_dns_payload.zip/ansible_collections/community/general/plugins/modules/cloudflare_dns.py\", line 949, in <module>\n  File \"/tmp/ansible_cloudflare_dns_payload_5bsfgbda/ansible_cloudflare_dns_payload.zip/ansible_collections/community/general/plugins/modules/cloudflare_dns.py\", line 936, in main\n  File \"/tmp/ansible_cloudflare_dns_payload_5bsfgbda/ansible_cloudflare_dns_payload.zip/ansible_collections/community/general/plugins/modules/cloudflare_dns.py\", line 650, in delete_dns_records\nTypeError: 'NoneType' object is not iterable\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

Issue Type

Bug Report

Component Name

cloudflare_dns

Ansible Version

???

Community.general Version

$ ansible-galaxy collection list community.general

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

Expected Results

???

Actual Results

Code of Conduct

prybalko commented 8 months ago

Having the same issue

Nirushen commented 8 months ago

Any ideas ?

ansibullbot commented 8 months ago

cc @mgruener click here for bot help

prybalko commented 8 months ago

The issue seems to have been resolved. Perhaps it was a Cloudflare glitch?

felixfontein commented 8 months ago

@Nirushen is the problem resolved also for you? If yes, I guess this was a temporary Cloudflare problem that is now fixed.