Merge pull request #1328 from alicefr/golint-fix

s390x: fix golint complain
This commit is contained in:
James O. D. Hunt 2019-03-11 11:17:31 +00:00 committed by GitHub
commit 5b58e6a715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ const defaultQemuMachineType = QemuCCWVirtio
const defaultQemuMachineOptions = "accel=kvm"
const VirtioSerialCCW = "virtio-serial-ccw"
const virtioSerialCCW = "virtio-serial-ccw"
var qemuPaths = map[string]string{
QemuCCWVirtio: defaultQemuPath,
@ -89,7 +89,7 @@ func (q *qemuS390x) appendBridges(devices []govmmQemu.Device, bridges []types.PC
// The function has been overwriten to correctly set the driver to the CCW device
func (q *qemuS390x) appendConsole(devices []govmmQemu.Device, path string) []govmmQemu.Device {
serial := govmmQemu.SerialDevice{
Driver: VirtioSerialCCW,
Driver: virtioSerialCCW,
ID: "serial0",
DisableModern: q.nestedRun,
}