Merge pull request #81918 from tedyu/pki-comment

Correct comment in CertOrKeyExist
This commit is contained in:
Kubernetes Prow Robot 2019-08-26 10:20:37 -07:00 committed by GitHub
commit 2c64627871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ func CertOrKeyExist(pkiPath, name string) bool {
_, certErr := os.Stat(certificatePath) _, certErr := os.Stat(certificatePath)
_, keyErr := os.Stat(privateKeyPath) _, keyErr := os.Stat(privateKeyPath)
if os.IsNotExist(certErr) && os.IsNotExist(keyErr) { if os.IsNotExist(certErr) && os.IsNotExist(keyErr) {
// The cert or the key did not exist // The cert and the key do not exist
return false return false
} }