Skip to content

Commit

Permalink
updated device_role to role
Browse files Browse the repository at this point in the history
  • Loading branch information
richbibby committed Sep 29, 2024
1 parent 629b52d commit 596c36f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_scripts/NewBranchScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run(self, data, commit):
name=f'{site.slug.upper()}-SW-{i}',
site=site,
status=DeviceStatusChoices.STATUS_PLANNED,
device_role=switch_role
role=switch_role
)
switch.save()
self.log_success(f"Created new switch: {switch}")
Expand All @@ -75,7 +75,7 @@ def run(self, data, commit):
name=f'{site.slug.upper()}-RTR-{i}',
site=site,
status=DeviceStatusChoices.STATUS_PLANNED,
device_role=router_role
role=router_role
)
router.save()
self.log_success(f"Created new router: {router}")
Expand All @@ -88,7 +88,7 @@ def run(self, data, commit):
name=f'{site.slug.upper()}-AP-{i}',
site=site,
status=DeviceStatusChoices.STATUS_PLANNED,
device_role=ap_role
role=ap_role
)
ap.save()
self.log_success(f"Created new AP: {router}")
Expand All @@ -101,7 +101,7 @@ def run(self, data, commit):
name=f'{site.slug.upper()}-VSP-{i}',
site=site,
status=DeviceStatusChoices.STATUS_PLANNED,
device_role=server_role
role=server_role
)
server.save()
self.log_success(f"Created new server: {router}")
Expand Down

0 comments on commit 596c36f

Please sign in to comment.