diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-06-05 10:41:50 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-06-05 10:41:50 -0700 |
commit | a9f64349802c724e2c4e639a6bc4730dd31a09c7 (patch) | |
tree | ec660798d4cc2744740c2c2d0682b56b5785cee3 /tasks | |
parent | a83a20d9f8cde101101a237580cb96d67782d17b (diff) | |
download | chef-a9f64349802c724e2c4e639a6bc4730dd31a09c7.tar.gz |
Add more resource docs + improve yaml generationresource_docs
Skip defaults that are empty strings. There's a few of these floating around.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/docs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb index c53b4aa58e..954bfa6059 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -141,7 +141,7 @@ namespace :docs_site do def friendly_default_value(property) return "The resource block's name" if property["name_property"] - return nil if property["default"].nil? + return nil if property["default"].nil? || property["default"] == "" # this way we properly print out a string of a hash or an array instead of just the values property["default"].to_s |