From 3223b91d65acbf44d8a519d441b77a0dc97a4c3b Mon Sep 17 00:00:00 2001 From: Chang Zhe Jiet Date: Mon, 15 Jan 2024 22:05:54 +0800 Subject: [PATCH] Revert "feat: Modify the parameters of ProvisionerArgs to adapt to remote-exec" This reverts commit de4fe0ba033952c070db3417a11d108693b239a1. --- src/blocks/Provisioner.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blocks/Provisioner.ts b/src/blocks/Provisioner.ts index 648cf63..1a5b4af 100644 --- a/src/blocks/Provisioner.ts +++ b/src/blocks/Provisioner.ts @@ -1,6 +1,6 @@ -import { Block } from '.'; import { Argument, Attribute } from '../arguments'; import { Util } from '../utils'; +import { Block } from '.'; /** * @category Block @@ -11,8 +11,7 @@ export type ProvisionerType = 'local-exec' | 'remote-exec'; * @category Block */ export interface ProvisionerArgs { - command?: string; - inline?: string[]; + command: string; when?: Argument<'destroy'>; on_failure?: Argument<'continue' | 'fail'>; }