Skip to content

Commit b281bac

Browse files
author
Thomas
committed
Fixed ipam delete_roles
Issue #27
1 parent 847346b commit b281bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/ipam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def delete_role(self, role_name):
283283
role_id = self.get_roles(name=role_name)[0]['id']
284284
except IndexError:
285285
raise exceptions.NotFoundException('prefix/vlan role: {}'.format(role_name)) from None
286-
return self.netbox_con.delete('/ipam/role/', role_id)
286+
return self.netbox_con.delete('/ipam/roles/', role_id)
287287

288288
def update_role(self, role_name, **kwargs):
289289
"""Update prefix role

0 commit comments

Comments
 (0)