diff --git a/lib/puppet_references/openbolt/docs.rb b/lib/puppet_references/openbolt/docs.rb index 5929412ca..6e77f2dae 100644 --- a/lib/puppet_references/openbolt/docs.rb +++ b/lib/puppet_references/openbolt/docs.rb @@ -59,7 +59,7 @@ def copy_reference_pages # leading H1 (the placement make_header uses for the other collections). # Falls back to after the YAML front matter, then to the top of the file. def insert_generated_note(content) - note = PuppetReferences::Util.generated_note('OpenBolt', @commit) + note = PuppetReferences::Util.generated_note('OpenBolt', PuppetReferences.version_commit) if (m = content.match(/\A(---\n.*?\n---\n\n)?(# [^\n]*\n)/m)) "#{m[1]}#{m[2]}\n#{note}\n#{m.post_match}" elsif (m = content.match(/\A(---\n.*?\n---\n)/m))