Skip to content

Commit

Permalink
provisiond: use proper slice size
Browse files Browse the repository at this point in the history
  • Loading branch information
zaibon committed Jan 31, 2020
1 parent 393b381 commit ce70535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gedis/types/provision/tfgrid_workloads_reservation_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func (k TfgridWorkloadsReservationK8S1) ToProvisionType() (provision.Kubernetes,
NetworkID: pkg.NetID(k.NetworkID),
IP: k.Ipaddress,
ClusterSecret: k.ClusterSecret,
MasterIPs: make([]net.IP, 0, len(k.MasterIps)),
SSHKeys: make([]string, 0, len(k.SSHKeys)),
MasterIPs: make([]net.IP, len(k.MasterIps)),
SSHKeys: make([]string, len(k.SSHKeys)),
}

for i, ip := range k.MasterIps {
Expand Down

0 comments on commit ce70535

Please sign in to comment.