diff options
author | Cole Robinson <crobinso@redhat.com> | 2012-10-14 14:55:24 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2012-10-14 14:55:24 -0400 |
commit | a341ce4534f60f79113ce27e64416abebcf241dd (patch) | |
tree | ecf43bf4a84f5d9d417087b206e91ddfcabae232 | |
parent | 71e5ac2a0a8578f466c74d5100943d44815ab8bd (diff) | |
download | virt-manager-a341ce4534f60f79113ce27e64416abebcf241dd.tar.gz |
details: Teach it about our faux description hotplug
-rw-r--r-- | src/virtManager/details.py | 10 |
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 |