Add version 0.x to the rule

This commit is contained in:
Ed Maxwell-Lyte 2019-01-08 15:35:45 +00:00
parent e40c90423f
commit e5b1e0f4d9
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ func (d *VBox42Driver) CreateSATAController(vmName string, name string, portcoun
}
portCountArg = "--portcount"
if strings.HasPrefix(version, "1.") || strings.HasPrefix(version, "2.") || strings.HasPrefix(version, "3.") || strings.HasPrefix(version, "4.0") || strings.HasPrefix(version, "4.1") || strings.HasPrefix(version, "4.2") {
if strings.HasPrefix(version, "0.") || strings.HasPrefix(version, "1.") || strings.HasPrefix(version, "2.") ||
strings.HasPrefix(version, "3.") || strings.HasPrefix(version, "4.0") || strings.HasPrefix(version, "4.1") ||
strings.HasPrefix(version, "4.2") {
portCountArg := "--sataportcount"
}