ansible_modules
ansible_modules copied to clipboard
[Docs]: Remove extra parenthesis in documentation for netbox.netbox.nb_lookup
Change Type
Cleanup (formatting, typos, etc.)
Area
Other
Proposed Changes
There are an extra parenthesis after the "Dell":
- https://github.com/netbox-community/ansible_modules/blob/159f30927d184d1850518c04bf659cae3758d8d1/docs/plugins/nb_lookup_lookup.rst?plain=1#L542
- https://github.com/netbox-community/ansible_modules/blob/159f30927d184d1850518c04bf659cae3758d8d1/plugins/lookup/nb_lookup.py#L101
I you blindly copy the code associated, you will get:
fatal: [localhost]: FAILED! => {"msg": "template error while templating string: expected token 'end of print statement', got '='. String: {{ query('netbox.netbox.nb_lookup', 'tag', api_endpoint='<endpoint>', api_filter='role=management tag=Dell'), token='<token>') }}. expected token 'end of print statement', got '='"}
Yep. Push a new PR fixing it and i'll 👍