Merge "libvirt: Omit needless check on 'CONF.serial_console'"
This commit is contained in:
commit
c43c1d3fb9
@ -5013,9 +5013,6 @@ class LibvirtDriver(driver.ComputeDriver):
|
|||||||
def _create_pty_device(self, guest_cfg, char_dev_cls, target_type=None,
|
def _create_pty_device(self, guest_cfg, char_dev_cls, target_type=None,
|
||||||
log_path=None):
|
log_path=None):
|
||||||
|
|
||||||
if CONF.serial_console.enabled:
|
|
||||||
return
|
|
||||||
|
|
||||||
consolepty = char_dev_cls()
|
consolepty = char_dev_cls()
|
||||||
consolepty.target_type = target_type
|
consolepty.target_type = target_type
|
||||||
consolepty.type = "pty"
|
consolepty.type = "pty"
|
||||||
|
Loading…
Reference in New Issue
Block a user