mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
compute: fix usage of API based on storage motion requirement
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
921ffe81be
commit
ca8c77f8f1
@ -193,13 +193,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
api: 'migrateVirtualMachineWithVolume',
|
||||
icon: 'export',
|
||||
label: 'Migrate VM with Volume(s)',
|
||||
dataView: true,
|
||||
show: (record) => { return ['Running'].includes(record.state) }
|
||||
},
|
||||
{
|
||||
api: 'migrateVirtualMachine',
|
||||
icon: 'drag',
|
||||
|
||||
@ -518,7 +518,6 @@ export default {
|
||||
this.listUuidOpts(param)
|
||||
}
|
||||
}
|
||||
console.log(this.currentAction.paramFields)
|
||||
this.currentAction.loading = false
|
||||
},
|
||||
listUuidOpts (param) {
|
||||
|
||||
@ -112,8 +112,9 @@ export default {
|
||||
},
|
||||
submitForm () {
|
||||
this.loading = true
|
||||
api('migrateVirtualMachine', {
|
||||
hostid: this.hosts[this.selectedIndex].id,
|
||||
const host = this.hosts[this.selectedIndex]
|
||||
api(host.requiresStorageMotion ? 'migrateVirtualMachineWithVolume' : 'migrateVirtualMachine', {
|
||||
hostid: host.id,
|
||||
virtualmachineid: this.resource.id
|
||||
}).then(response => {
|
||||
this.$store.dispatch('AddAsyncJob', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user