From 7b77b14bfd25fa736c034680fea6a5b41fc297b6 Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Sun, 26 Jul 2020 07:34:39 +0300 Subject: [PATCH] Fix int to string conversions --- upup/pkg/fi/cloudup/awsup/machine_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upup/pkg/fi/cloudup/awsup/machine_types.go b/upup/pkg/fi/cloudup/awsup/machine_types.go index 3dcf68d34740a..cdeb49b84efd8 100644 --- a/upup/pkg/fi/cloudup/awsup/machine_types.go +++ b/upup/pkg/fi/cloudup/awsup/machine_types.go @@ -55,7 +55,7 @@ func (m *AWSMachineTypeInfo) EphemeralDevices() []*EphemeralDevice { // TODO: What drive letters do we use? klog.Fatalf("ephemeral devices for > 20 not yet implemented") } - d.DeviceName = "/dev/sd" + string('c'+i) + d.DeviceName = fmt.Sprintf("/dev/sd%c", 'c'+i) d.VirtualName = fmt.Sprintf("ephemeral%d", i) disks = append(disks, d)