Skip to content

Commit f3894c1

Browse files
Daniil Svetlovclaude
andcommitted
fix: move v2 token comment to config.py and regenerate settings-example
Per maintainer review: add v2 token description to ConfigOption in config.py and regenerate settings-example.ini via netbox-sync.py -gc. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 63f61db commit f3894c1

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

module/netbox/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def __init__(self):
2626
ConfigOption("api_token",
2727
str,
2828
description="""Requires an NetBox API token with full permissions on all objects except
29-
'auth', 'secrets' and 'users'
29+
'auth', 'secrets' and 'users'.
30+
Both v1 (legacy) and v2 (NetBox 4.5+, nbt_ prefix) tokens are supported.
3031
""",
3132
config_example="XYZ",
3233
mandatory=True,

settings-example.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
[netbox]
4545

4646
; Requires an NetBox API token with full permissions on all objects except 'auth',
47-
; 'secrets' and 'users'
48-
; Both v1 (legacy) and v2 (NetBox 4.5+, nbt_ prefix) tokens are supported.
47+
; 'secrets' and 'users'. Both v1 (legacy) and v2 (NetBox 4.5+, nbt_ prefix) tokens are
48+
; supported.
4949
api_token = XYZ
5050

5151
; Requires a hostname or IP which points to your NetBox instance

0 commit comments

Comments
 (0)