details: Teach it about our faux description hotplug

This commit is contained in:
Cole Robinson 2012-10-14 14:55:24 -04:00
parent 71e5ac2a0a
commit a341ce4534

View File

@ -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