summaryrefslogtreecommitdiff
path: root/tasks/docs.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-01 09:56:52 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-01 09:56:52 -0700
commit039df15956bdfce0785693a0537e114f28272a31 (patch)
tree937cf519b3dcff33cda802c559c92b336b24972b /tasks/docs.rb
parentd91bfb959708085408240c7f4b8a06ff8380994e (diff)
downloadchef-039df15956bdfce0785693a0537e114f28272a31.tar.gz
Handle symbols in the equal_to values
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks/docs.rb')
-rwxr-xr-xtasks/docs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb
index ea9afc051e..cfa937c58d 100755
--- a/tasks/docs.rb
+++ b/tasks/docs.rb
@@ -180,7 +180,7 @@ namespace :docs_site do
values["required"] = property["required"]
values["default_value"] = default_val unless default_val.nil?
values["new_in"] = property["introduced"] unless property["introduced"].nil?
- # values["allowed_values"] = property["equal_to"].join(', ')
+ values["allowed_values"] = property["equal_to"].join(', ') unless property["equal_to"].empty?
values["description_list"] = [{ "markdown" => property["description"] }]
values
end