File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ export default {
170170 this .volumes = []
171171 getAPI (' listVolumes' , {
172172 listAll: true ,
173- virtualmachineid: this .resource .id
173+ virtualmachineid: this .resource .id ,
174+ listsystemvms: true
174175 }).then (response => {
175176 var volumes = response .listvolumesresponse .volume
176177 if (volumes && volumes .length > 0 ) {
Original file line number Diff line number Diff line change @@ -338,11 +338,11 @@ export default {
338338 submitForm () {
339339 if (this .loading ) return
340340 this .loading = true
341- const migrateApi = this .isUserVm
342- ? this .requiresStorageMigration ()
343- ? ' migrateVirtualMachineWithVolume '
344- : ' migrateVirtualMachine '
345- : ' migrateSystemVm '
341+ const migrateApi = ! this .requiresStorageMigration ()
342+ ? this .isUserVm
343+ ? ' migrateVirtualMachine '
344+ : ' migrateSystemVm '
345+ : ' migrateVirtualMachineWithVolume '
346346 var params = this .selectedHost .id === - 1
347347 ? { autoselect: true , virtualmachineid: this .resource .id }
348348 : { hostid: this .selectedHost .id , virtualmachineid: this .resource .id }
You can’t perform that action at this time.
0 commit comments