From 385a936467582f13cffc09c8ad719367360e9007 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Thu, 26 Sep 2024 15:23:18 +0800 Subject: [PATCH] fix volume isEncrypted logic Signed-off-by: andy.lee --- pkg/harvester/models/harvester/persistentvolumeclaim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/harvester/models/harvester/persistentvolumeclaim.js b/pkg/harvester/models/harvester/persistentvolumeclaim.js index d960d7673a1..d9d23c37113 100644 --- a/pkg/harvester/models/harvester/persistentvolumeclaim.js +++ b/pkg/harvester/models/harvester/persistentvolumeclaim.js @@ -217,7 +217,7 @@ export default class HciPv extends HarvesterResource { } get isEncrypted() { - return Boolean(this.relatedPV?.spec.csi.volumeAttributes.encrypted) || false; + return this.relatedPV?.spec.csi.volumeAttributes.encrypted === 'true'; } get longhornVolume() {