Merge "libvirt: Omit needless check on 'CONF.serial_console'"

This commit is contained in:
Zuul 2019-03-05 14:30:56 +00:00 committed by Gerrit Code Review
commit c43c1d3fb9

View File

@ -5013,9 +5013,6 @@ class LibvirtDriver(driver.ComputeDriver):
def _create_pty_device(self, guest_cfg, char_dev_cls, target_type=None,
log_path=None):
if CONF.serial_console.enabled:
return
consolepty = char_dev_cls()
consolepty.target_type = target_type
consolepty.type = "pty"