mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
qemu: fix golangci-lint errors
fix golangci-lint errors Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
61b6378749
commit
335fa81667
@ -1153,7 +1153,7 @@ func (blkdev BlockDevice) QemuParams(config *Config) []string {
|
||||
}
|
||||
|
||||
if blkdev.ShareRW {
|
||||
deviceParams = append(deviceParams, fmt.Sprintf("share-rw=on"))
|
||||
deviceParams = append(deviceParams, "share-rw=on")
|
||||
}
|
||||
|
||||
deviceParams = append(deviceParams, fmt.Sprintf("serial=%s", blkdev.ID))
|
||||
@ -1905,7 +1905,7 @@ func (vsock VSOCKDevice) QemuParams(config *Config) []string {
|
||||
var qemuParams []string
|
||||
|
||||
driver := vsock.deviceName(config)
|
||||
deviceParams = append(deviceParams, string(driver))
|
||||
deviceParams = append(deviceParams, driver)
|
||||
if s := vsock.Transport.disableModern(config, vsock.DisableModern); s != "" {
|
||||
deviceParams = append(deviceParams, s)
|
||||
}
|
||||
@ -2080,7 +2080,7 @@ func (b BalloonDevice) QemuParams(config *Config) []string {
|
||||
deviceParams = append(deviceParams, "deflate-on-oom=off")
|
||||
}
|
||||
if s := b.Transport.disableModern(config, b.DisableModern); s != "" {
|
||||
deviceParams = append(deviceParams, string(s))
|
||||
deviceParams = append(deviceParams, s)
|
||||
}
|
||||
qemuParams = append(qemuParams, "-device")
|
||||
qemuParams = append(qemuParams, strings.Join(deviceParams, ","))
|
||||
|
@ -391,7 +391,7 @@ func TestAppendVirtioRng(t *testing.T) {
|
||||
ROMFile: romfile,
|
||||
}
|
||||
|
||||
deviceString += "-" + string(rngDevice.Transport.getName(nil)) + ",rng=rng0"
|
||||
deviceString += "-" + rngDevice.Transport.getName(nil) + ",rng=rng0"
|
||||
if romfile != "" {
|
||||
deviceString = deviceString + ",romfile=efi-virtio.rom"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user