diff --git a/command-handler/src/commands/vm.js b/command-handler/src/commands/vm.js index 95d0b19..0c1ea1e 100644 --- a/command-handler/src/commands/vm.js +++ b/command-handler/src/commands/vm.js @@ -111,7 +111,7 @@ export default { const { imageID, imageName, region, serverType } = JSON.parse(body.actions[0].value); hetzner.createServer({ app, body, imageID, imageName, region, serverType }); } else if (actionId.startsWith('button_create_image_libvirt')) { - const { imageName, instanceType } = JSON.parse(body.actions[0].value); + const { imageName, region, instanceType } = JSON.parse(body.actions[0].value); libvirt.createServer({ app, body, imageName, region, instanceType }); } else if (actionId === 'button_create_vm_hetzner') { //select the hetzner server to create before calling the create server