From 4fc02ea4061fc9398d58da91df7cac9fa5315af7 Mon Sep 17 00:00:00 2001 From: Ed Maxwell-Lyte <2248005+edwardmlyte@users.noreply.github.com> Date: Tue, 8 Jan 2019 16:19:11 +0000 Subject: [PATCH] Assign to existing var --- 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 9bfa3baf1..1a2c8541d 100644 --- a/builder/virtualbox/common/driver_4_2.go +++ b/builder/virtualbox/common/driver_4_2.go @@ -28,7 +28,7 @@ func (d *VBox42Driver) CreateSATAController(vmName string, name string, portcoun 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" + portCountArg = "--sataportcount" } command := []string{