Skip to content

Commit c7af57b

Browse files
author
Daan Hoogland
committed
ui-errors
1 parent b2f24d8 commit c7af57b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ui/src/views/tools/SelectVmwareVcenter.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,19 +256,13 @@ export default {
256256
listZoneVmwareDcs () {
257257
this.loading = true
258258
api('listVmwareDcs', { zoneid: this.sourcezoneid }).then(response => {
259-
260259
if (response.listvmwaredcsresponse.VMwareDC && response.listvmwaredcsresponse.VMwareDC.length > 0) {
261260
this.existingvcenter = response.listvmwaredcsresponse.VMwareDC
262261
}
263262
}).catch(error => {
264-
if (doNotify) {
265-
this.$notifyError(error)
266-
}
267-
this.hosts = []
268-
return false
263+
this.$notifyError(error)
269264
}).finally(() => {
270265
this.loading = false
271-
return true
272266
})
273267
},
274268
onSelectExistingVmwareDatacenter (value) {

0 commit comments

Comments
 (0)