fix(vm.create): cloudConfig handling
This commit is contained in:
parent
124cb15ebe
commit
5d346aba37
@ -50,7 +50,7 @@ export default {
|
|||||||
const template = this.getObject(templateId)
|
const template = this.getObject(templateId)
|
||||||
|
|
||||||
// Clones the template.
|
// Clones the template.
|
||||||
const vm = await this._getOrWaitObject(
|
let vm = await this._getOrWaitObject(
|
||||||
await this[clone ? '_cloneVm' : '_copyVm'](template, nameLabel)
|
await this[clone ? '_cloneVm' : '_copyVm'](template, nameLabel)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -178,6 +178,9 @@ export default {
|
|||||||
// TODO: Assign VGPUs.
|
// TODO: Assign VGPUs.
|
||||||
|
|
||||||
if (cloudConfig != null) {
|
if (cloudConfig != null) {
|
||||||
|
// Refresh the record.
|
||||||
|
vm = this.getObject(vm.$id)
|
||||||
|
|
||||||
// Find the SR of the first VDI.
|
// Find the SR of the first VDI.
|
||||||
let srRef
|
let srRef
|
||||||
forEach(vm.$VBDs, vbd => {
|
forEach(vm.$VBDs, vbd => {
|
||||||
|
Loading…
Reference in New Issue
Block a user