Skip to content

Commit

Permalink
fix: resume schedule job error
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <[email protected]>
(cherry picked from commit 8116358)
  • Loading branch information
a110605 authored and mergify[bot] committed Jan 14, 2025
1 parent b96637e commit fff6153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/harvester/models/harvesterhci.io.schedulevmbackup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fff6153

Please sign in to comment.