Commit 18acc5bb authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

Make domain title change persistent to saved state

parent 98f25ad2
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -149,7 +149,9 @@ class VirtualMachine(object):
    @title.setter
    @title.setter
    def title(self, value):
    def title(self, value):
        try:
        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:
        except AttributeError:
            raise NotImplementedError('This hv doesn\'t handle VM titles')
            raise NotImplementedError('This hv doesn\'t handle VM titles')
        else:
        else: