ListKeypairs: don't print 'keyset.yaml' as the key id

Fix #4553
This commit is contained in:
Justin Santa Barbara 2018-03-10 16:14:15 -05:00
parent 181a1ca9c6
commit 11644389f4
1 changed files with 7 additions and 3 deletions

View File

@ -573,11 +573,15 @@ func (c *VFSCAStore) ListKeysets() ([]*kops.Keyset, error) {
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{
Id: strings.TrimSuffix(tokens[1], ".crt"),
})
}
}
}
var items []*kops.Keyset
for _, v := range keysets {