Delete this cluster button not appearing due to typo in virtualization/cluster.html #2736

Closed
opened 2025-12-29 18:21:34 +01:00 by adam · 0 comments
Owner

Originally created by @kartiksubbarao on GitHub (Jul 10, 2019).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.6.1

Steps to Reproduce

  1. Create a virtualization cluster
  2. Create a group called deleters and assign the virtualization | cluster | Can delete cluster permission to that group
  3. Add the deleters group to a user
  4. Login as that user and navigate to the cluster created in step 1

Expected Behavior

The Delete this cluster button should show up on the right side of the window.

Observed Behavior

The Delete this cluster button does not show up.

The problem is on line 36 of virtualization/cluster.html:
https://github.com/netbox-community/netbox/blob/develop/netbox/templates/virtualization/cluster.html#L36

The fix is to change perms.dcim.delete_cluster to perms.virtualization.delete_cluster.

Originally created by @kartiksubbarao on GitHub (Jul 10, 2019). ### Environment * Python version: 3.5.2 * NetBox version: 2.6.1 ### Steps to Reproduce 1. Create a virtualization cluster 2. Create a group called **deleters** and assign the **virtualization | cluster | Can delete cluster** permission to that group 3. Add the **deleters** group to a user 4. Login as that user and navigate to the cluster created in step 1 ### Expected Behavior The **Delete this cluster** button should show up on the right side of the window. ### Observed Behavior The **Delete this cluster** button does not show up. The problem is on line 36 of virtualization/cluster.html: https://github.com/netbox-community/netbox/blob/develop/netbox/templates/virtualization/cluster.html#L36 The fix is to change **perms.dcim.delete_cluster** to **perms.virtualization.delete_cluster**.
adam added the type: bugstatus: accepted labels 2025-12-29 18:21:34 +01:00
adam closed this issue 2025-12-29 18:21:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2736