mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
details: Teach it about our faux description hotplug
This commit is contained in:
parent
71e5ac2a0a
commit
a341ce4534
@ -2034,6 +2034,16 @@ class vmmDetails(vmmGObjectUI):
|
||||
desc = desc_widget.get_buffer().get_property("text") or ""
|
||||
add_define(self.vm.define_description, desc)
|
||||
|
||||
# Hack so that we don't get a warning that
|
||||
# 'changes take effect after reboot'
|
||||
# We already fake hotplug like behavior, by reading the
|
||||
# description from the inactive XML from a running VM
|
||||
#
|
||||
# libvirt since 0.9.10 provides a SetMetadata API that provides
|
||||
# actual <description> 'hotplug', but using that means checking
|
||||
# for support, version, etc, so let's stick with the easy way
|
||||
add_hotplug(lambda d: d, desc)
|
||||
|
||||
return self._change_config_helper(df, da, hf, ha)
|
||||
|
||||
# CPUs
|
||||
|
Loading…
Reference in New Issue
Block a user