mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fix custom script documentation example script
The example script still uses the old "role" field when creating a Device object. Fixes #15052
This commit is contained in:
parent
28aee9b69a
commit
4afebd3565
@ -390,7 +390,7 @@ class NewBranchScript(Script):
|
|||||||
name=f'{site.slug}-switch{i}',
|
name=f'{site.slug}-switch{i}',
|
||||||
site=site,
|
site=site,
|
||||||
status=DeviceStatusChoices.STATUS_PLANNED,
|
status=DeviceStatusChoices.STATUS_PLANNED,
|
||||||
role=switch_role
|
device_role=switch_role
|
||||||
)
|
)
|
||||||
switch.full_clean()
|
switch.full_clean()
|
||||||
switch.save()
|
switch.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user