]> xenbits.xensource.com Git - libvirt.git/commit
conf: move the check for secondary consoles of targetType serial
authorErik Skultety <eskultet@redhat.com>
Thu, 11 Dec 2014 11:28:22 +0000 (12:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Dec 2014 08:40:01 +0000 (09:40 +0100)
commitd85dcae4b2bb7277503001519e533d21133f65d4
tree5e287dbef68cf3504b74b44510296df843bc7511
parentc5a54917d5ae97653d29dbfe4995f2efcf5717d6
conf: move the check for secondary consoles of targetType serial

For historical reasons, only the first <console> element might be of targetType
serial, but we checked for other consoles of targetType serial in our post-parse
callback if and only if we knew the first console was serial, otherwise
the check was skipped.
This patch moves the check one level up, so first
the check for secondary console of type serial is performed and then the
rest of operations continue unchanged.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1170092
src/conf/domain_conf.c