From 39953d162031426590923472329fb8cf5ce5bf44 Mon Sep 17 00:00:00 2001 From: John Mc Kenna <61982860+johnmckenna@users.noreply.github.com> Date: Mon, 11 Mar 2024 16:50:22 +0000 Subject: [PATCH 1/2] fix(terraform): fix terraform validate executor schema and command --- packages/terraform/src/executors/validate/schema.json | 1 - packages/terraform/src/utils/create-executor.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/terraform/src/executors/validate/schema.json b/packages/terraform/src/executors/validate/schema.json index 24ccfb9d..90c02b9f 100644 --- a/packages/terraform/src/executors/validate/schema.json +++ b/packages/terraform/src/executors/validate/schema.json @@ -6,5 +6,4 @@ "title": "Validate executor", "description": "Validate", "properties": {} - } } diff --git a/packages/terraform/src/utils/create-executor.ts b/packages/terraform/src/utils/create-executor.ts index d0349aae..2a0128ec 100644 --- a/packages/terraform/src/utils/create-executor.ts +++ b/packages/terraform/src/utils/create-executor.ts @@ -54,7 +54,7 @@ export function createExecutor(command: string) { command === 'init' && upgrade && '-upgrade', command === 'init' && migrateState && '-migrate-state', command === 'providers' && lock && 'lock', - command === 'validate', + command === 'validate' && '', command === 'test' && varFile && `--var-file ${varFile}`, ]), { From 7b2afe48d31b4bc377a0def60d69bdcc5e404054 Mon Sep 17 00:00:00 2001 From: John Mc Kenna <61982860+johnmckenna@users.noreply.github.com> Date: Tue, 12 Mar 2024 09:09:10 +0000 Subject: [PATCH 2/2] Update packages/terraform/src/utils/create-executor.ts Co-authored-by: Tycho Bokdam --- packages/terraform/src/utils/create-executor.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/terraform/src/utils/create-executor.ts b/packages/terraform/src/utils/create-executor.ts index 2a0128ec..24239ac6 100644 --- a/packages/terraform/src/utils/create-executor.ts +++ b/packages/terraform/src/utils/create-executor.ts @@ -54,7 +54,6 @@ export function createExecutor(command: string) { command === 'init' && upgrade && '-upgrade', command === 'init' && migrateState && '-migrate-state', command === 'providers' && lock && 'lock', - command === 'validate' && '', command === 'test' && varFile && `--var-file ${varFile}`, ]), {