mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 23:57:49 +00:00
Merge pull request #81918 from tedyu/pki-comment
Correct comment in CertOrKeyExist
This commit is contained in:
commit
2c64627871
@ -198,7 +198,7 @@ func CertOrKeyExist(pkiPath, name string) bool {
|
||||
_, certErr := os.Stat(certificatePath)
|
||||
_, keyErr := os.Stat(privateKeyPath)
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user