Skip to content

Commit cc3816e

Browse files
authored
Conditional handle pynetbox versions (#934)
* Handle different pynetbox version * Update dependencies
1 parent da9b26a commit cc3816e

File tree

12 files changed

+108
-723
lines changed

12 files changed

+108
-723
lines changed

docs/plugins/environment_variables.rst

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ Environment variables used by the ansible-core configuation are documented in :r
1717
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`
1818
.. envvar:: NETBOX_API
1919

20-
See the documentations for the options where this environment variable is used.
20+
Endpoint of the NetBox API
2121

2222
*Used by:*
23-
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`,
24-
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
23+
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`
2524
.. envvar:: NETBOX_API_KEY
2625

2726
NetBox API token to be able to read against NetBox.
@@ -30,24 +29,11 @@ Environment variables used by the ansible-core configuation are documented in :r
3029

3130
*Used by:*
3231
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`
33-
.. envvar:: NETBOX_API_TOKEN
34-
35-
The API token created through NetBox
36-
37-
This may not be required depending on the NetBox setup.
38-
39-
*Used by:*
40-
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
4132
.. envvar:: NETBOX_TOKEN
4233

43-
See the documentations for the options where this environment variable is used.
44-
45-
*Used by:*
46-
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`,
47-
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
48-
.. envvar:: NETBOX_URL
34+
NetBox API token to be able to read against NetBox.
4935

50-
The URL to the NetBox instance to query
36+
This may not be required depending on the NetBox setup.
5137

5238
*Used by:*
53-
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
39+
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`

docs/plugins/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Inventory Plugins
130130
Lookup Plugins
131131
~~~~~~~~~~~~~~
132132

133-
* :ref:`nb_lookup lookup <ansible_collections.netbox.netbox.nb_lookup_lookup>` -- Queries and returns elements from NetBox
133+
* :ref:`nb_lookup lookup <ansible_collections.netbox.netbox.nb_lookup_lookup>` --
134134

135135

136136

0 commit comments

Comments
 (0)