Skip to content

Commit

Permalink
fix volume isEncrypted logic
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 committed Sep 26, 2024
1 parent f4d655c commit 385a936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/harvester/models/harvester/persistentvolumeclaim.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 385a936

Please sign in to comment.