From 4a5e4b067e58ec1226cddaef0a101391756bf39c Mon Sep 17 00:00:00 2001 From: kumarp20 Date: Fri, 27 Sep 2024 09:03:56 -0400 Subject: [PATCH] fix linting errors --- .../deployment/csminstallationwizard/src/index.html | 2 +- .../src/static/js/generate-yaml.js | 4 ++-- .../src/static/js/tests/generate-yaml.test.js | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/content/docs/deployment/csminstallationwizard/src/index.html b/content/docs/deployment/csminstallationwizard/src/index.html index 8b81d584fe..0adcdd2584 100644 --- a/content/docs/deployment/csminstallationwizard/src/index.html +++ b/content/docs/deployment/csminstallationwizard/src/index.html @@ -351,7 +351,7 @@ -
+
SDC is required for using block storage. Click on the documentation link for more details. diff --git a/content/docs/deployment/csminstallationwizard/src/static/js/generate-yaml.js b/content/docs/deployment/csminstallationwizard/src/static/js/generate-yaml.js index 4b1549eec9..19bcc6fdff 100644 --- a/content/docs/deployment/csminstallationwizard/src/static/js/generate-yaml.js +++ b/content/docs/deployment/csminstallationwizard/src/static/js/generate-yaml.js @@ -126,7 +126,7 @@ function setValues(csmMapValues, CONSTANTS_PARAM) { DriverValues.vSphereVCenterHost = $("#vSphere-vCenter-host").val(); DriverValues.vSphereVCenterCredSecret = $("#vSphere-vCenter-cred-secret").val(); DriverValues.renameSDC = $("#rename-sdc").prop('checked') ? true : false; - DriverValues.sdcEnabled = $("#enable-sdc").prop('checked') ? true : false; + DriverValues.sdcEnabled = $("#enable-sdc").prop('checked') ? true : false; DriverValues.sdcPrefix = $("#sdc-prefix").val(); DriverValues.approveSDC = $("#approve-sdc").prop('checked') ? true : false; DriverValues.enableQuota = $("#enable-quota").prop('checked') ? true : false; @@ -187,7 +187,7 @@ function createYamlString(yamlTpl, yamlTplValues, driverParam, CONSTANTS_PARAM) yamlTpl = yamlTpl.replaceAll("$NODE_TOLERATIONS", yamlTplValues.nodeTolerations); yamlTpl = yamlTpl.replaceAll("$TARGET_ARRAY_ID", yamlTplValues.targetArrayID); yamlTpl = yamlTpl.replaceAll("$TARGET_UNISPHERE", yamlTplValues.targetUnisphere); - yamlTpl = yamlTpl.replaceAll("$SDC_ENABLED", yamlTplValues.sdcEnabled); + yamlTpl = yamlTpl.replaceAll("$SDC_ENABLED", yamlTplValues.sdcEnabled); yamlTpl = yamlTpl.replaceAll("$RENAME_SDC_ENABLED", yamlTplValues.renameSDC); yamlTpl = yamlTpl.replaceAll("$SDC_PREFIX", yamlTplValues.sdcPrefix); yamlTpl = yamlTpl.replaceAll("$APPROVE_SDC_ENABLED", yamlTplValues.approveSDC); diff --git a/content/docs/deployment/csminstallationwizard/src/static/js/tests/generate-yaml.test.js b/content/docs/deployment/csminstallationwizard/src/static/js/tests/generate-yaml.test.js index 4ad1e97698..3164e6ff93 100644 --- a/content/docs/deployment/csminstallationwizard/src/static/js/tests/generate-yaml.test.js +++ b/content/docs/deployment/csminstallationwizard/src/static/js/tests/generate-yaml.test.js @@ -191,7 +191,7 @@ describe("GIVEN setValues function", () => { observabilityOperatorTopology: false, topologyEnabled: false, transportProtocol: "", - sdcEnabled: false, + sdcEnabled: false, renameSDC: false, sdcPrefix: "", approveSDC: false, @@ -667,7 +667,7 @@ describe("GIVEN createYamlString function", () => { enabled: $CERT_MANAGER_ENABLED `; - const testObject_sdc = { + const testObjectSdc = { csmVersion: "1.12.0", driverVersion: "v2.12.0", imageRepository: "dellemc", @@ -707,7 +707,7 @@ describe("GIVEN createYamlString function", () => { vSphereVCenterHost: "00.000.000.00", vSphereVCenterCredSecret: "vcenter-creds", migration: false, - sdcEnabled: true, + sdcEnabled: true, renameSDC: false, sdcPrefix: "sdc-test", approveSDC: false @@ -986,7 +986,7 @@ describe("GIVEN createYamlString function", () => { enabled: false `; - const received = createYamlString(testYAML, testObject_sdc, "powerflex", CONSTANTS); + const received = createYamlString(testYAML, testObjectSdc, "powerflex", CONSTANTS); expect(received).toEqual(expected); }); @@ -1305,7 +1305,7 @@ describe("GIVEN createYamlString function", () => { vSphereVCenterHost: "00.000.000.00", vSphereVCenterCredSecret: "vcenter-creds", migration: false, - sdcEnabled: false, + sdcEnabled: false, renameSDC: false, sdcPrefix: "sdc-test", approveSDC: false @@ -2697,4 +2697,4 @@ describe("GIVEN createYamlString function", () => { expect(received).toEqual(expected); }); -}); \ No newline at end of file +});