-
Notifications
You must be signed in to change notification settings - Fork 253
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Ansible NetBox Collection version
v3.17.0
Ansible version
ansible [core 2.13.2]
config file = /home/ansible/ansible/ansible.cfg
configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/ansible/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
executable location = /home/ansible/.local/bin/ansible
python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
jinja version = 3.1.2
libyaml = TrueNetBox version
v3.7.3
Python version
3.9
Steps to Reproduce
Create a Custom Field Choice Sets called set1
Run the following playbook:
---
- name: "Lookup choice set"
hosts: localhost
tasks:
- name: debug
debug:
msg: "{{ (query('netbox.netbox.nb_lookup', 'custom-field-choice-sets', api_filter='name=set1', api_endpoint=netbox_url, token=netbox_token ))[0] }}"
Expected Behavior
I expect an list with information about the choice set, including the choices.
Observed Behavior
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'netbox.netbox.nb_lookup'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Unrecognised term custom-field-choice-sets. Check documentation. Unrecognised term custom-field-choice-sets. Check documentation"}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working