From 0b783c9d265add2f3416914ad2ddd157bc7b983f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Delon Date: Wed, 9 Aug 2023 19:23:28 +0200 Subject: [PATCH] feat(dedicated): make choice effective at os install ref: MANAGER-11680 Signed-off-by: Jean-Baptiste Delon --- .../client/app/dedicated/server/details/server.service.js | 3 ++- .../dedicated-server-installation-gabarit.controller.js | 1 + .../ovh/dedicated-server-installation-ovh.controller.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/manager/apps/dedicated/client/app/dedicated/server/details/server.service.js b/packages/manager/apps/dedicated/client/app/dedicated/server/details/server.service.js index 86000a2af417..5321addaff16 100644 --- a/packages/manager/apps/dedicated/client/app/dedicated/server/details/server.service.js +++ b/packages/manager/apps/dedicated/client/app/dedicated/server/details/server.service.js @@ -1101,7 +1101,7 @@ export default class Server { }); } - startInstallation(serviceName, templateName, details) { + startInstallation(serviceName, templateName, partitionSchemeName, details) { return this.OvhHttp.post('/dedicated/server/{serviceName}/install/start', { rootPath: 'apiv6', urlParams: { @@ -1109,6 +1109,7 @@ export default class Server { }, data: { details, + partitionSchemeName, templateName, }, }); diff --git a/packages/manager/apps/dedicated/client/app/dedicated/server/installation/gabarit/dedicated-server-installation-gabarit.controller.js b/packages/manager/apps/dedicated/client/app/dedicated/server/installation/gabarit/dedicated-server-installation-gabarit.controller.js index d367c8b768f0..93e50da858d1 100644 --- a/packages/manager/apps/dedicated/client/app/dedicated/server/installation/gabarit/dedicated-server-installation-gabarit.controller.js +++ b/packages/manager/apps/dedicated/client/app/dedicated/server/installation/gabarit/dedicated-server-installation-gabarit.controller.js @@ -294,6 +294,7 @@ angular Server.startInstallation( $stateParams.productId, $scope.installation.selectGabarit.id, + $scope.installation.selectPartitionScheme, { language: camelCase($scope.installation.selectLanguage), customHostname: $scope.installation.options.customHostname, diff --git a/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js b/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js index 324cbf0b3815..5973b8ea043b 100644 --- a/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js +++ b/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js @@ -2486,6 +2486,7 @@ angular Server.startInstallation( $stateParams.productId, $scope.informations.gabaritName, + $scope.installation.selectPartitionScheme, { language: camelCase($scope.installation.selectLanguage), installRTM: $scope.installation.options.installRTM || false,