"module_stderr": "Traceback (most recent call last):
File \"/home/mike/.ansible/tmp/ansible-tmp-1636651686.5968943-2106292-136929830572095/AnsiballZ_netbox_cable.py\", line 102, in <module>
_ansiballz_main()
File \"/home/mike/.ansible/tmp/ansible-tmp-1636651686.5968943-2106292-136929830572095/AnsiballZ_netbox_cable.py\", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File \"/home/mike/.ansible/tmp/ansible-tmp-1636651686.5968943-2106292-136929830572095/AnsiballZ_netbox_cable.py\", line 40, in invoke_module
runpy.run_module(mod_name='ansible_collections.netbox.netbox.plugins.modules.netbox_cable', 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_netbox_cable_payload_ok0g65n6/ansible_netbox_cable_payload.zip/ansible_collections/netbox/netbox/plugins/modules/netbox_cable.py\", line 381, in <module>
File \"/tmp/ansible_netbox_cable_payload_ok0g65n6/ansible_netbox_cable_payload.zip/ansible_collections/netbox/netbox/plugins/modules/netbox_cable.py\", line 377, in main
File \"/tmp/ansible_netbox_cable_payload_ok0g65n6/ansible_netbox_cable_payload.zip/ansible_collections/netbox/netbox/plugins/module_utils/netbox_dcim.py\", line 153, in run
NameError: name 'Version' is not defined
",
ISSUE TYPE
SOFTWARE VERSIONS
Ansible:
NetBox:
Collection:
SUMMARY
STEPS TO REPRODUCE
Invoke the playbook(s) below by running the ansible play:
$ ansible-playbook main.yaml
EXPECTED RESULTS
ACTUAL RESULTS
WORKAROUND
I deleted the if/else statement beginning on line 153 here: https://github.com/netbox-community/ansible_modules/blob/devel/plugins/module_utils/netbox_dcim.py
Since my version is > 3.0.6 I figure this would get me going which it did.