Actions
Bug #10338
openUsing template_name variable in template causes error in Build Review
Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Description
I have a provisioning template that is reading in its own title and splitting the string to get a portion for use in the script. The code works as expected, however I get a nasty error message when attempting to build.
Error Message:
The following errors may prevent a successful build: Templates Failure parsing ESXi55 Kickstart 1.4-7: undefined method `split' for nil:NilClass.
The Culprit code:
Kickstart Version: <%= @template_name.split(' ')[-1] %>
The split method works properly as here is the output:
Kickstart Version: 1.4-7
I want to reiterate, the failure message does not actually prevent the build from completing, and the split does indeed work properly. I marked this issue as a "refactor" due to the false report that there is a "failure parsing"
Actions