summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2012-10-14 14:55:24 -0400
committerCole Robinson <crobinso@redhat.com>2012-10-14 14:55:24 -0400
commita341ce4534f60f79113ce27e64416abebcf241dd (patch)
treeecf43bf4a84f5d9d417087b206e91ddfcabae232
parent71e5ac2a0a8578f466c74d5100943d44815ab8bd (diff)
downloadvirt-manager-a341ce4534f60f79113ce27e64416abebcf241dd.tar.gz
details: Teach it about our faux description hotplug
-rw-r--r--src/virtManager/details.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/virtManager/details.py b/src/virtManager/details.py
index c53c67f7..35dc8338 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 <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