Skip to content

Commit

Permalink
Merge pull request #88 from harvester/mergify/bp/release-harvester-v1…
Browse files Browse the repository at this point in the history
….5/pr-84

fix: resume schedule job error (backport #84)
  • Loading branch information
a110605 authored Jan 14, 2025
2 parents b96637e + fff6153 commit 9af5ff7
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 9af5ff7

Please sign in to comment.