mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-06 14:13:28 -06:00
addhardware: panic: Fill in model combo with advertised values by libvirt
The commit c5a46646
asks libvirt to fill in a default panic model for us.
Now libvirt domcaps can advertise panic models, Let's fill in the panic
model combo with the advertised values.
Signed-off-by: Lin Ma <lma@suse.de>
This commit is contained in:
parent
f9ceec2b14
commit
f92c25749b
@ -860,8 +860,13 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
|
||||
|
||||
def _build_panic_model_combo(self):
|
||||
guest = self.vm.get_xmlobj()
|
||||
values = [[None, _("Hypervisor default")]]
|
||||
for m in guest.lookup_domcaps().supported_panic_models():
|
||||
values.append([m, m])
|
||||
|
||||
uiutil.build_simple_combo(self.widget("panic-model"), values)
|
||||
uiutil.set_list_selection(self.widget("panic-model"), None)
|
||||
|
||||
|
||||
def _build_controller_type_combo(self):
|
||||
|
Loading…
Reference in New Issue
Block a user