fix: get sourceSchedule exception

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
(cherry picked from commit 12cadbf667)
This commit is contained in:
Yi-Ya Chen
2025-01-24 02:08:49 +00:00
committed by Mergify
parent 8d338b5f72
commit efd93c5e52
@@ -132,7 +132,7 @@ export default class HciVmBackup extends HarvesterResource {
} }
get sourceSchedule() { get sourceSchedule() {
return this.metadata?.annotations[HCI_ANNOTATIONS.SVM_BACKUP_ID]; return this.metadata?.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID];
} }
get attachVM() { get attachVM() {