Skip to content
Snippets Groups Projects
Commit 18acc5bb authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

Make domain title change persistent to saved state

parent 98f25ad2
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,9 @@ class VirtualMachine(object):
@title.setter
def title(self, value):
try:
self.lv_dom.setMetadata(libvirt.VIR_DOMAIN_METADATA_TITLE, value, None, None)
self.lv_dom.setMetadata(libvirt.VIR_DOMAIN_METADATA_TITLE, value,
None, None, (libvirt.VIR_DOMAIN_AFFECT_LIVE |
libvirt.VIR_DOMAIN_AFFECT_CONFIG))
except AttributeError:
raise NotImplementedError('This hv doesn\'t handle VM titles')
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment