From eb927958bd416606027601af49684315a4432e5b Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Sat, 10 Apr 2021 15:52:23 -0400 Subject: [PATCH] Add null to tobool docs --- website/docs/language/functions/tobool.html.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/docs/language/functions/tobool.html.md b/website/docs/language/functions/tobool.html.md index 4ff160929..88dbb19f3 100644 --- a/website/docs/language/functions/tobool.html.md +++ b/website/docs/language/functions/tobool.html.md @@ -14,7 +14,7 @@ Explicit type conversions are rarely necessary in Terraform because it will convert types automatically where required. Use the explicit type conversion functions only to normalize types returned in module outputs. -Only boolean values and the exact strings `"true"` and `"false"` can be +Only boolean values, `null`, and the exact strings `"true"` and `"false"` can be converted to boolean. All other values will produce an error. ## Examples @@ -24,6 +24,8 @@ converted to boolean. All other values will produce an error. true > tobool("true") true +> tobool(null) +null > tobool("no") Error: Invalid function argument