File tree 3 files changed +3
-10
lines changed
3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,6 @@ export default {
193
193
}
194
194
}
195
195
} ,
196
- {
197
- api : 'migrateVirtualMachineWithVolume' ,
198
- icon : 'export' ,
199
- label : 'Migrate VM with Volume(s)' ,
200
- dataView : true ,
201
- show : ( record ) => { return [ 'Running' ] . includes ( record . state ) }
202
- } ,
203
196
{
204
197
api : 'migrateVirtualMachine' ,
205
198
icon : 'drag' ,
Original file line number Diff line number Diff line change @@ -518,7 +518,6 @@ export default {
518
518
this .listUuidOpts (param)
519
519
}
520
520
}
521
- console .log (this .currentAction .paramFields )
522
521
this .currentAction .loading = false
523
522
},
524
523
listUuidOpts (param ) {
Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ export default {
112
112
},
113
113
submitForm () {
114
114
this .loading = true
115
- api (' migrateVirtualMachine' , {
116
- hostid: this .hosts [this .selectedIndex ].id ,
115
+ const host = this .hosts [this .selectedIndex ]
116
+ api (host .requiresStorageMotion ? ' migrateVirtualMachineWithVolume' : ' migrateVirtualMachine' , {
117
+ hostid: host .id ,
117
118
virtualmachineid: this .resource .id
118
119
}).then (response => {
119
120
this .$store .dispatch (' AddAsyncJob' , {
You can’t perform that action at this time.
0 commit comments