fix volume isEncrypted logic

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee 2024-09-26 15:23:18 +08:00 committed by Francesco Torchia
parent e13b0eea0c
commit 7293e65fb4
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393

View File

@ -214,7 +214,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() {