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:
k8s-ci-robot 2018-06-11 01:41:27 -07:00 committed by GitHub
commit f8ef03091c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {