Skip to content

Commit

Permalink
Merge pull request #9630 from hakman/fix-char-to-string
Browse files Browse the repository at this point in the history
Fix int to string conversions
  • Loading branch information
k8s-ci-robot authored Jul 26, 2020
2 parents d0a2bae + 5a9cc3d commit 75f37d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/instancegroups/rollingupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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 + string(rune('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 75f37d6

Please sign in to comment.