Skip to content

Commit 542fc38

Browse files
Updated lookup docs to use the FQCN (#355)
1 parent 50fdaea commit 542fc38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/lookup/nb_lookup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
msg: >
7676
"Device {{ item.value.display_name }} (ID: {{ item.key }}) was
7777
manufactured by {{ item.value.device_type.manufacturer.name }}"
78-
loop: "{{ query('nb_lookup', 'devices',
78+
loop: "{{ query('netbox.netbox.nb_lookup', 'devices',
7979
api_endpoint='http://localhost/',
8080
token='<redacted>') }}"
8181
@@ -88,7 +88,7 @@
8888
msg: >
8989
"Device {{ item.value.display_name }} (ID: {{ item.key }}) was
9090
manufactured by {{ item.value.device_type.manufacturer.name }}"
91-
loop: "{{ query('nb_lookup', 'devices',
91+
loop: "{{ query('netbox.netbox.nb_lookup', 'devices',
9292
api_endpoint='http://localhost/',
9393
api_filter='role=management tag=Dell'),
9494
token='<redacted>') }}"
@@ -97,7 +97,7 @@
9797
tasks:
9898
- name: "Obtain secrets for R1-Device"
9999
debug:
100-
msg: "{{ query('nb_lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='<redacted>', key_file='~/.ssh/id_rsa') }}"
100+
msg: "{{ query('netbox.netbox.nb_lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='<redacted>', key_file='~/.ssh/id_rsa') }}"
101101
"""
102102

103103
RETURN = """

0 commit comments

Comments
 (0)