From fa87d7a4fc93e825d89bd7001f7841f5438dc36f Mon Sep 17 00:00:00 2001 From: Remie Bolte Date: Mon, 9 Dec 2024 13:39:10 +0100 Subject: [PATCH] fix: if the CWD option is provided, we should not force default configuration when provisioning --- src/commands/apt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/apt.ts b/src/commands/apt.ts index 24e7aba..cd0cc63 100644 --- a/src/commands/apt.ts +++ b/src/commands/apt.ts @@ -247,7 +247,7 @@ const ProvisionCommand = () => ({ license: options.license, nodes: options.nodes, force: options.force - }, true); + }, options.cwd === undefined); }, errorHandler: async () => { @@ -292,7 +292,7 @@ program .addOption(new Option('--environment ', 'The environment name')) .addOption(new Option('--license ', 'The host product license, either as a path to a file or the license itself')) .addOption(new Option('--nodes ', 'The number of nodes for the cluster').default(1)) - .addOption(new Option('--cwd ', 'Specify the working directory where to find the App Performance Toolkit').default(cwd())) + .addOption(new Option('--cwd ', 'Specify the working directory where to find the App Performance Toolkit')) .addOption(new Option('-y, --force', 'Use default values for input questions when available').default(false)) .action(options => ActionHandler(program, ProvisionCommand(), options));