templates/test_spec.rb.erb in onceover-3.21.0 vs templates/test_spec.rb.erb in onceover-3.22.0
- old
+ new
@@ -8,9 +8,12 @@
node_facts = <%= node.fact_set %>
let(:facts) { node_facts }
<% if node.trusted_set -%>
trusted_facts = <%= node.trusted_set %>
let(:trusted_facts) { trusted_facts }
+ <% if node.trusted_set['certname'] -%>
+ let(:node) { "<%= node.trusted_set['certname'] %>" }
+ <% end -%>
<% end -%>
<% if node.trusted_external_set -%>
trusted_external_data = <%= node.trusted_external_set %>
let(:trusted_external_data) { trusted_external_data }
<% end -%>