ansible_modules icon indicating copy to clipboard operation
ansible_modules copied to clipboard

[Docs]: Remove extra parenthesis in documentation for netbox.netbox.nb_lookup

Open etigui opened this issue 2 years ago • 1 comments

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 '='"}

etigui avatar Dec 05 '23 15:12 etigui

Yep. Push a new PR fixing it and i'll 👍

sc68cal avatar Dec 06 '23 17:12 sc68cal