diff --git a/terraform_docs.sh b/terraform_docs.sh index 464dc94..0935b69 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -169,7 +169,12 @@ terraform_docs_awk() { if (type ~ "object") { print " type = \"object\"" } else { - print " type = \"" $3 "\"" + # legacy quoted types: "string", "list", and "map" + if ($3 ~ /^[[:space:]]*"(.*?)"[[:space:]]*$/) { + print " type = " $3 + } else { + print " type = \"" $3 "\"" + } } } }