Skip to content

Commit ca932b1

Browse files
committed
Modify offline status color for vm
1 parent 26ffa95 commit ca932b1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

docs/release-notes/version-2.7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [#4113](https://github.com/netbox-community/netbox/issues/4113) - Add bulk edit functionality for device type components
88
* [#4116](https://github.com/netbox-community/netbox/issues/4116) - Enable bulk edit and delete functions for device component list views
99
* [#4129](https://github.com/netbox-community/netbox/issues/4129) - Add buttons to delete individual device type components
10+
* [#4093](https://github.com/netbox-community/netbox/issues/4093) - Add decommissioning status for VMs
1011

1112
## Bug Fixes
1213

@@ -29,7 +30,6 @@
2930
* [#3313](https://github.com/netbox-community/netbox/issues/3313) - Toggle config context display between JSON and YAML
3031
* [#3886](https://github.com/netbox-community/netbox/issues/3886) - Enable assigning config contexts by cluster and cluster group
3132
* [#4051](https://github.com/netbox-community/netbox/issues/4051) - Disable the `makemigrations` management command
32-
* [#4093](https://github.com/netbox-community/netbox/issues/4093) - Add decommissioning status for VMs
3333

3434
## Bug Fixes
3535

netbox/virtualization/choices.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class VirtualMachineStatusChoices(ChoiceSet):
2424
STATUS_OFFLINE: 0,
2525
STATUS_ACTIVE: 1,
2626
STATUS_STAGED: 3,
27-
STATUS_DECOMMISSIONING: 4,
2827
}
2928

3029

netbox/virtualization/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class VirtualMachine(ChangeLoggedModel, ConfigContextModel, CustomFieldModel):
268268

269269
STATUS_CLASS_MAP = {
270270
VirtualMachineStatusChoices.STATUS_ACTIVE: 'success',
271-
VirtualMachineStatusChoices.STATUS_OFFLINE: 'warning',
271+
VirtualMachineStatusChoices.STATUS_OFFLINE: 'danger',
272272
VirtualMachineStatusChoices.STATUS_STAGED: 'primary',
273273
VirtualMachineStatusChoices.STATUS_DECOMMISSIONING: 'warning',
274274
}

0 commit comments

Comments
 (0)