mirror of https://github.com/kubernetes/kops.git
Merge pull request #5254 from justinsb/dont_print_keyset_yaml
ListKeypairs: don't print 'keyset.yaml' as the key id
This commit is contained in:
commit
f8ef03091c
|
|
@ -573,11 +573,15 @@ func (c *VFSCAStore) ListKeysets() ([]*kops.Keyset, error) {
|
||||||
keysets[name] = keyset
|
keysets[name] = keyset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if tokens[1] == "keyset.yaml" {
|
||||||
|
// TODO: Should we load the keyset to get the actual ids?
|
||||||
|
} else {
|
||||||
keyset.Spec.Keys = append(keyset.Spec.Keys, kops.KeysetItem{
|
keyset.Spec.Keys = append(keyset.Spec.Keys, kops.KeysetItem{
|
||||||
Id: strings.TrimSuffix(tokens[1], ".crt"),
|
Id: strings.TrimSuffix(tokens[1], ".crt"),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var items []*kops.Keyset
|
var items []*kops.Keyset
|
||||||
for _, v := range keysets {
|
for _, v := range keysets {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue