mirror of https://github.com/kubernetes/kops.git
machine-types: remove duplicate dedup
PR #6058 addded dedup in a better way than I had previously done, so remove my more complicated and now superfluous second dedup.
This commit is contained in:
parent
741510a9ca
commit
b78e4312ec
|
|
@ -262,14 +262,7 @@ func run() error {
|
|||
|
||||
for _, f := range sortedFamilies {
|
||||
output = output + fmt.Sprintf("\n// %s family", f)
|
||||
previousMachine := ""
|
||||
for _, m := range machines {
|
||||
// Ignore duplicates
|
||||
if m.Name == previousMachine {
|
||||
continue
|
||||
}
|
||||
previousMachine = m.Name
|
||||
|
||||
if family := strings.Split(m.Name, ".")[0]; family == f {
|
||||
var ecu string
|
||||
if m.Burstable {
|
||||
|
|
|
|||
Loading…
Reference in New Issue