Fixes: #18408 add STATUS_PAUSED to VirtualMachine (#18595)

* feat(vm): add extra status

* keep only usefull status

---------

Co-authored-by: Antoine Keranflec'h <antoine.keranflech@worldline.com>
This commit is contained in:
Antoine Keranflec'h 2025-02-07 22:41:45 +01:00 committed by GitHub
parent 0b194e363e
commit e475386936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,6 +38,7 @@ class VirtualMachineStatusChoices(ChoiceSet):
STATUS_STAGED = 'staged' STATUS_STAGED = 'staged'
STATUS_FAILED = 'failed' STATUS_FAILED = 'failed'
STATUS_DECOMMISSIONING = 'decommissioning' STATUS_DECOMMISSIONING = 'decommissioning'
STATUS_PAUSED = 'paused'
CHOICES = [ CHOICES = [
(STATUS_OFFLINE, _('Offline'), 'gray'), (STATUS_OFFLINE, _('Offline'), 'gray'),
@ -46,4 +47,5 @@ class VirtualMachineStatusChoices(ChoiceSet):
(STATUS_STAGED, _('Staged'), 'blue'), (STATUS_STAGED, _('Staged'), 'blue'),
(STATUS_FAILED, _('Failed'), 'red'), (STATUS_FAILED, _('Failed'), 'red'),
(STATUS_DECOMMISSIONING, _('Decommissioning'), 'yellow'), (STATUS_DECOMMISSIONING, _('Decommissioning'), 'yellow'),
(STATUS_PAUSED, _('Paused'), 'orange'),
] ]