Skip to content

Commit

Permalink
Fix int to string conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Jul 26, 2020
1 parent d0a2bae commit 3b551b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/instancegroups/rollingupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package instancegroups
import (
"context"
"errors"
"fmt"
"strings"
"sync"
"testing"
Expand Down Expand Up @@ -136,7 +137,7 @@ func makeGroup(groups map[string]*cloudinstances.CloudInstanceGroup, k8sClient k

var instanceIds []*string
for i := 0; i < count; i++ {
id := name + string('a'+i)
id := name + fmt.Sprintf("%c", 'a'+i)
var node *v1.Node
if role != kopsapi.InstanceGroupRoleBastion {
node = &v1.Node{
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/awsup/machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,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)
Expand Down

0 comments on commit 3b551b1

Please sign in to comment.