Skip to content

Commit b3690aa

Browse files
authored
Update query example with correct path to plugin (#293)
1 parent 9584659 commit b3690aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,14 @@ Using the **collections** lookup plugin at the task level
192192
connection: local
193193
hosts: localhost
194194
gather_facts: False
195-
195+
collections:
196+
- netbox.netbox
196197
tasks:
197198
- name: "NETBOX_LOOKUP 1: Lookup returns exactly two sites"
198199
assert:
199200
that: "{{ query_result|count }} == 3"
200201
vars:
201-
query_result: "{{ query('nb_lookup', 'sites', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}"
202+
query_result: "{{ query('netbox.netbox.nb_lookup', 'sites', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}"
202203
```
203204
204205
### Using **nb_inventory** Within AWX/Tower

0 commit comments

Comments
 (0)