Create portCountArg in the if statement
You can't assign to something that doesn't exist Co-Authored-By: edwardmlyte <edwardmlyte@gmail.com>
This commit is contained in:
parent
a9eed311a6
commit
f91b668617
|
@ -24,7 +24,7 @@ func (d *VBox42Driver) CreateSATAController(vmName string, name string, portcoun
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
portCountArg = "--portcount"
|
portCountArg := "--portcount"
|
||||||
if strings.HasPrefix(version, "0.") || strings.HasPrefix(version, "1.") || strings.HasPrefix(version, "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, "3.") || strings.HasPrefix(version, "4.0") || strings.HasPrefix(version, "4.1") ||
|
||||||
strings.HasPrefix(version, "4.2") {
|
strings.HasPrefix(version, "4.2") {
|
||||||
|
|
Loading…
Reference in New Issue