From 9cf790ce6a756040172a42daf8515009f16b7a3b Mon Sep 17 00:00:00 2001 From: Felix <90956507+cloudwithfelix@users.noreply.github.com> Date: Sun, 28 Apr 2024 08:56:04 +0200 Subject: [PATCH 1/3] Wrong reference I think line 249 is meaning to reference to the "when" functionality, not the "on_failure" functionality. --- website/docs/language/resources/provisioners/syntax.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/language/resources/provisioners/syntax.mdx b/website/docs/language/resources/provisioners/syntax.mdx index 69f8c422fa..35923611fe 100644 --- a/website/docs/language/resources/provisioners/syntax.mdx +++ b/website/docs/language/resources/provisioners/syntax.mdx @@ -246,7 +246,7 @@ can leave a resource in a semi-configured state. Because Terraform cannot reason about what the provisioner does, the only way to ensure proper creation of a resource is to recreate it. This is tainting. -You can change this behavior by setting the `on_failure` attribute, +You can change this behavior by setting the `when` attribute, which is covered in detail below. ## Destroy-Time Provisioners From c6bf44d3c59fb1d9d0f83cd1973c3449228c69e7 Mon Sep 17 00:00:00 2001 From: Craig Wright Date: Wed, 8 May 2024 15:16:02 -0700 Subject: [PATCH 2/3] Update website/docs/language/resources/provisioners/syntax.mdx Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com> --- website/docs/language/resources/provisioners/syntax.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/language/resources/provisioners/syntax.mdx b/website/docs/language/resources/provisioners/syntax.mdx index 35923611fe..1925a3c94b 100644 --- a/website/docs/language/resources/provisioners/syntax.mdx +++ b/website/docs/language/resources/provisioners/syntax.mdx @@ -246,7 +246,7 @@ can leave a resource in a semi-configured state. Because Terraform cannot reason about what the provisioner does, the only way to ensure proper creation of a resource is to recreate it. This is tainting. -You can change this behavior by setting the `when` attribute, +You can change this behavior by setting the `on_failure` attribute to `continue`. Refer to [Failure Behavior](#failure-behavior) for additional information. which is covered in detail below. ## Destroy-Time Provisioners From 57f7ee129d7fadac73d1c05f2944df172778244a Mon Sep 17 00:00:00 2001 From: Craig Wright Date: Wed, 8 May 2024 15:16:08 -0700 Subject: [PATCH 3/3] Update website/docs/language/resources/provisioners/syntax.mdx Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com> --- website/docs/language/resources/provisioners/syntax.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/website/docs/language/resources/provisioners/syntax.mdx b/website/docs/language/resources/provisioners/syntax.mdx index 1925a3c94b..d3a042ec70 100644 --- a/website/docs/language/resources/provisioners/syntax.mdx +++ b/website/docs/language/resources/provisioners/syntax.mdx @@ -247,7 +247,6 @@ reason about what the provisioner does, the only way to ensure proper creation of a resource is to recreate it. This is tainting. You can change this behavior by setting the `on_failure` attribute to `continue`. Refer to [Failure Behavior](#failure-behavior) for additional information. -which is covered in detail below. ## Destroy-Time Provisioners