Skip to content

Commit 7449646

Browse files
committed
Fix create instance from backup ui for other providers
1 parent dae4f3b commit 7449646

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/views/storage/CreateVMFromBackup.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ export default {
119119
})
120120
},
121121
fetchBackupRepository () {
122+
if (this.backupOffering.provider !== 'nas') {
123+
return
124+
}
122125
getAPI('listBackupRepositories', {
123126
id: this.backupOffering.externalid
124127
}).then(response => {
@@ -129,7 +132,7 @@ export default {
129132
populatePreFillData () {
130133
this.vmdetails = this.resource.vmdetails
131134
this.dataPreFill.zoneid = this.resource.zoneid
132-
this.dataPreFill.draasenabled = this.backupRepository.draasenabled
135+
this.dataPreFill.draasenabled = this.backupRepository?.draasenabled || this.backupOffering.provider === 'dummy'
133136
this.dataPreFill.isIso = (this.vmdetails.isiso === 'true')
134137
this.dataPreFill.backupid = this.resource.id
135138
this.dataPreFill.computeofferingid = this.vmdetails.serviceofferingid

0 commit comments

Comments
 (0)