File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,6 @@ export default {
193193 }
194194 }
195195 } ,
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- } ,
203196 {
204197 api : 'migrateVirtualMachine' ,
205198 icon : 'drag' ,
Original file line number Diff line number Diff line change @@ -518,7 +518,6 @@ export default {
518518 this .listUuidOpts (param)
519519 }
520520 }
521- console .log (this .currentAction .paramFields )
522521 this .currentAction .loading = false
523522 },
524523 listUuidOpts (param ) {
Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ export default {
112112 },
113113 submitForm () {
114114 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 ,
117118 virtualmachineid: this .resource .id
118119 }).then (response => {
119120 this .$store .dispatch (' AddAsyncJob' , {
You can’t perform that action at this time.
0 commit comments