Skip to content

Commit

Permalink
fix: attempt to fix netdevopsbr#129
Browse files Browse the repository at this point in the history
  • Loading branch information
alryaz authored Oct 10, 2023
1 parent a1ef41a commit a97874d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netbox_proxbox/proxbox_api/create/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# extras.tags
#
async def tag():
def tag():
proxbox_tag_name = 'Proxbox'
proxbox_tag_slug = 'proxbox'

Expand Down Expand Up @@ -40,7 +40,7 @@ async def tag():
# dcim.device_roles
#
# OBS: this function is here and not in ./dcim.py since it is used by both NODE and VIRTUAL MACHINE.
async def role(**kwargs):
def role(**kwargs):
# If role_id equals to 0, consider it is not configured by user and must be created by Proxbox
role_id = kwargs.get("role_id", 0)

Expand Down Expand Up @@ -84,4 +84,4 @@ async def role(**kwargs):
else:
return 'Role ID configured is invalid.'

return role
return role

0 comments on commit a97874d

Please sign in to comment.