Merge pull request #170 from harvester/mergify/bp/release-harvester-v1.5/pr-169

fix golden image error when creating LVM volume (backport #169)
This commit is contained in:
Andy Lee 2025-02-27 13:51:29 +08:00 committed by GitHub
commit 7bdf40d737
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ export default {
this.$store.dispatch('type-map/configureType', { match: HCI.VOLUME, isCreatable: false });
}
// we only show the non golden image PVCs in the list
const pvcs = hash.pvcs.filter((pvc) => pvc.metadata.annotations[HCI_ANNOTATIONS.GOLDEN_IMAGE] !== 'true');
const pvcs = hash.pvcs.filter((pvc) => pvc?.metadata?.annotations?.[HCI_ANNOTATIONS.GOLDEN_IMAGE] !== 'true');
this.rows = pvcs;
},