From f91b6686179beac7fbf9ff695c1f4bf77d824675 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 8 Jan 2019 16:15:24 +0000 Subject: [PATCH] Create portCountArg in the if statement You can't assign to something that doesn't exist Co-Authored-By: edwardmlyte --- builder/virtualbox/common/driver_4_2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/virtualbox/common/driver_4_2.go b/builder/virtualbox/common/driver_4_2.go index 8af782947..9bfa3baf1 100644 --- a/builder/virtualbox/common/driver_4_2.go +++ b/builder/virtualbox/common/driver_4_2.go @@ -24,7 +24,7 @@ func (d *VBox42Driver) CreateSATAController(vmName string, name string, portcoun return err } - portCountArg = "--portcount" + portCountArg := "--portcount" 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") {