Skip to content

Commit

Permalink
Fixes: #18408 add STATUS_PAUSED to VirtualMachine (#18595)
Browse files Browse the repository at this point in the history
* feat(vm): add extra status

* keep only usefull status

---------

Co-authored-by: Antoine Keranflec'h <[email protected]>
  • Loading branch information
antoinekh and Antoine Keranflec'h authored Feb 7, 2025
1 parent 0b194e3 commit e475386
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netbox/virtualization/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class VirtualMachineStatusChoices(ChoiceSet):
STATUS_STAGED = 'staged'
STATUS_FAILED = 'failed'
STATUS_DECOMMISSIONING = 'decommissioning'
STATUS_PAUSED = 'paused'

CHOICES = [
(STATUS_OFFLINE, _('Offline'), 'gray'),
Expand All @@ -46,4 +47,5 @@ class VirtualMachineStatusChoices(ChoiceSet):
(STATUS_STAGED, _('Staged'), 'blue'),
(STATUS_FAILED, _('Failed'), 'red'),
(STATUS_DECOMMISSIONING, _('Decommissioning'), 'yellow'),
(STATUS_PAUSED, _('Paused'), 'orange'),
]

0 comments on commit e475386

Please sign in to comment.