Merge pull request #15053 from aharrisson/develop

Fix custom script documentation example script
This commit is contained in:
Jeff Gehlbach 2024-02-09 11:19:51 -05:00 committed by GitHub
commit 011bc5bd78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()