fix: correct linter errors

I missed some of the `let` definitions for the ca, cert, and key when
establishing the docker TLS connection.

DCO-1.1 Signed-off-by: Patrick Wagstrom <160672+pridkett@users.noreply.github.com>
pull/5123/head
Patrick Wagstrom 2 months ago
parent 495bf51ac8
commit f65453e50c
No known key found for this signature in database
GPG Key ID: 96EB828DBB815796

@ -156,6 +156,10 @@ class DockerHost {
let certPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameCert); let certPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameCert);
let keyPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameKey); let keyPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameKey);
let key;
let cert;
let ca;
if (dockerType === "tcp") { if (dockerType === "tcp") {
if (fs.existsSync(keyPath) && fs.existsSync(certPath)) { if (fs.existsSync(keyPath) && fs.existsSync(certPath)) {
// Load the key and cert // Load the key and cert

Loading…
Cancel
Save