From a341ce4534f60f79113ce27e64416abebcf241dd Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 14 Oct 2012 14:55:24 -0400 Subject: [PATCH] details: Teach it about our faux description hotplug --- src/virtManager/details.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/virtManager/details.py b/src/virtManager/details.py index c53c67f73..35dc8338e 100644 --- a/src/virtManager/details.py +++ b/src/virtManager/details.py @@ -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 '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