fix: resume schedule job error

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee 2025-01-13 14:13:00 +08:00
parent 5bd8ad2a93
commit 8116358011
No known key found for this signature in database
GPG Key ID: 10911689462678C7

View File

@ -64,6 +64,10 @@ export default class ScheduleVmBackup extends HarvesterResource {
}
}
get stateObj() {
return this?.metadata?.state || {};
}
get state() {
return this.status?.suspended === true ? STATES.suspended.label : STATES.active.label;
}