Explorar o código

Merge pull request #15053 from aharrisson/develop

Fix custom script documentation example script
Jeff Gehlbach %!s(int64=2) %!d(string=hai) anos
pai
achega
011bc5bd78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/customization/custom-scripts.md

+ 1 - 1
docs/customization/custom-scripts.md

@@ -390,7 +390,7 @@ class NewBranchScript(Script):
                 name=f'{site.slug}-switch{i}',
                 site=site,
                 status=DeviceStatusChoices.STATUS_PLANNED,
-                role=switch_role
+                device_role=switch_role
             )
             switch.full_clean()
             switch.save()