admin管理员组文章数量:1187854
I am new to ansible and pynetbox and getting Module Error:
\"/tmp/ansible_netbox_prefix_payload_0y25s6d5/ansible_netbox_prefix_payload.zip/ansible_collections/netbox/netbox/plugins/modules/netbox_prefix.py\", line 288, in <module>\n File \"/tmp/ansible_netbox_prefix_payload_0y25s6d5/ansible_netbox_prefix_payload.zip/ansible_collections/netbox/netbox/plugins/modules/netbox_prefix.py\", line 283, in main\n File \"/tmp/ansible_netbox_prefix_payload_0y25s6d5/ansible_netbox_prefix_payload.zip/ansible_collections/netbox/netbox/plugins/module_utils/netbox_ipam.py\", line 39, in __init__\n File \"/tmp/ansible_netbox_prefix_payload_0y25s6d5/ansible_netbox_prefix_payload.zip/ansible_collections/netbox/netbox/plugins/module_utils/netbox_utils.py\", line 773, in __init__\n File \"/tmp/ansible_netbox_prefix_payload_0y25s6d5/ansible_netbox_prefix_payload.zip/ansible_collections/netbox/netbox/plugins/module_utils/netbox_utils.py\", line 900, in _convert_identical_keys\n File \"/tmp/ansible_netbox_prefix_payload_0y25s6d5/ansible_netbox_prefix_payload.zip/ansible_collections/netbox/netbox/plugins/module_utils/netbox_utils.py\", line 782, in _version_check_greater\nValueError: not enough values to unpack (expected 2, got 1)\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
Can anyone please help me out with this? I am using /
. There is no issues with authentication token.
curl -H "Authorization: Token MY-TOKEN" /api/status/
{"django-version":"5.1.4","installed-apps":{"django_filters":"24.3","django_prometheus":"2.3.1","django_rq":"3.0.0","django_tables2":"2.7.5","drf_spectacular":"0.28.0","drf_spectacular_sidecar":"2024.12.1","mptt":"0.16.0","rest_framework":"3.15.2","social_django":"5.4.2","taggit":"6.1.0","timezone_field":"7.0"},"netbox-version":"4.2.0","plugins":{"netbox_demo":"0.5.0"},"python-version":"3.10.14","rq-workers-running":1}
My python version is 3.10 and Ansible module is present along with pynetbox.
I am testing adding prefix in netbox using ansible.
本文标签:
版权声明:本文标题:python - Module Error while Adding Prefix in NetBox using Ansible and pynetbox: 'ValueError: not enough values to unpack 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738312978a2074144.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论