mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-08 16:22:15 -04:00
Merge pull request #8050 from alrs/fix-qemu-dropped-error
builder/qemu: Fix dropped error
This commit is contained in:
commit
f152e6a2a2
1 changed files with 3 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error
|
|||
return nil, err
|
||||
}
|
||||
qemuVersion, err := version.NewVersion(rawVersion)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
v2 := version.Must(version.NewVersion("2.0"))
|
||||
|
||||
if qemuVersion.GreaterThanOrEqual(v2) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue