Commit 5bad0f30 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix open_console method for VirtualMachine

parent 0e5ef132
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -194,7 +194,9 @@ class VirtualMachine(object):
        if self.stream is not None:
            raise ConsoleAlreadyOpened('Console for this VM is already'
                                       ' opened')
        if self.hypervisor.handler.tag_db['libvirtver'].value.startswith('8'):
        if str(
            self.hypervisor.handler.tag_db['__main__']['libvirtver'].value,
        ).startswith('8'):
            raise ConsoleError(
                'Cannot open console, not compatible with this version of libvirt')
        logger.info('Opening console stream on VM %s', self.name)