Skip to content

Commit

Permalink
Add restoring status for image
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 committed Aug 27, 2024
1 parent b97bf06 commit 0443560
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/harvester/models/harvesterhci.io.virtualmachineimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ export default class HciVmImage extends HarvesterResource {
const imported = this.getStatusConditionOfType('Imported');

if (imported?.status === 'Unknown') {
if (this.spec.sourceType === 'restore') {
return 'Restoring';
}

if (this.spec.sourceType === 'download') {
return 'Downloading';
}
Expand Down

0 comments on commit 0443560

Please sign in to comment.