mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
Merge pull request #1328 from alicefr/golint-fix
s390x: fix golint complain
This commit is contained in:
commit
5b58e6a715
@ -23,7 +23,7 @@ const defaultQemuMachineType = QemuCCWVirtio
|
|||||||
|
|
||||||
const defaultQemuMachineOptions = "accel=kvm"
|
const defaultQemuMachineOptions = "accel=kvm"
|
||||||
|
|
||||||
const VirtioSerialCCW = "virtio-serial-ccw"
|
const virtioSerialCCW = "virtio-serial-ccw"
|
||||||
|
|
||||||
var qemuPaths = map[string]string{
|
var qemuPaths = map[string]string{
|
||||||
QemuCCWVirtio: defaultQemuPath,
|
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
|
// 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 {
|
func (q *qemuS390x) appendConsole(devices []govmmQemu.Device, path string) []govmmQemu.Device {
|
||||||
serial := govmmQemu.SerialDevice{
|
serial := govmmQemu.SerialDevice{
|
||||||
Driver: VirtioSerialCCW,
|
Driver: virtioSerialCCW,
|
||||||
ID: "serial0",
|
ID: "serial0",
|
||||||
DisableModern: q.nestedRun,
|
DisableModern: q.nestedRun,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user