summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-08-08 15:49:21 -0700
committerTim Smith <tsmith84@gmail.com>2019-08-08 15:49:21 -0700
commitc907c2670ddbd2016a174d617729ab11e1c66f84 (patch)
treec45b763eea0078dc57eb435f71fae2c07bb1d1a5
parent60ec22a3eff29b10fdb4c9192dd9f93ecfbd07cc (diff)
downloadchef-c907c2670ddbd2016a174d617729ab11e1c66f84.tar.gz
Fix Chef Client vs. Chef Infra Client logic
It helps to not pass a nil in Signed-off-by: Tim Smith <tsmith@chef.io>
-rwxr-xr-xtasks/docs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb
index c4758ba398..db89354517 100755
--- a/tasks/docs.rb
+++ b/tasks/docs.rb
@@ -322,7 +322,7 @@ The <%= @name %> resource has the following properties:
**Ruby Type:** <%= friendly_types_list(p['is']) %><% unless pretty_default(p['default']).nil? %> | **Default Value:** ``<%= pretty_default(p['default']) %>``<% end %><% if p['required'] %> | ``REQUIRED``<% end %><% if p['deprecated'] %> | ``DEPRECATED``<% end %><% if p['name_property'] %> | **Default Value:** ``The resource block's name``<% end %>
<% unless p['description'].nil? %> <%= p['description'].strip %><% end %>
-<% unless p['introduced'].nil? -%>\n\n *New in <%= branded_chef_client_name(@introduced) %> <%= p['introduced'] -%>.*\n<% end -%>
+<% unless p['introduced'].nil? -%>\n\n *New in <%= branded_chef_client_name(p['introduced']) %> <%= p['introduced'] -%>.*\n<% end -%>
<% end %>
<% if @properties.empty? %>This resource does not have any properties.\n<% end -%>
<%= boilerplate_content %>