mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #4093: Add decommissioning for vms
This commit is contained in:
@@ -267,9 +267,10 @@ class VirtualMachine(ChangeLoggedModel, ConfigContextModel, CustomFieldModel):
|
||||
]
|
||||
|
||||
STATUS_CLASS_MAP = {
|
||||
'active': 'success',
|
||||
'offline': 'warning',
|
||||
'staged': 'primary',
|
||||
VirtualMachineStatusChoices.STATUS_ACTIVE: 'success',
|
||||
VirtualMachineStatusChoices.STATUS_OFFLINE: 'warning',
|
||||
VirtualMachineStatusChoices.STATUS_STAGED: 'primary',
|
||||
VirtualMachineStatusChoices.STATUS_DECOMMISSIONING: 'warning',
|
||||
}
|
||||
|
||||
class Meta:
|
||||
|
||||
Reference in New Issue
Block a user