Support #796
closedBuilt problem with PXE Default File template
Description
Hi again,
I found a bug with the PXE Default template. When I'm trying to build a host with an OS linked to PXE Default File template I receive the next error:
Processing HostsController#setBuild (for xx.xx.xx.xx at 2011-03-28 14:48:54) [GET]
Parameters: {"action"=>"setBuild", "id"=>"cliente2.metro.local", "controller"=>"hosts"}
Add the TFTP configuration for cliente2.metro.localSyntaxError (compile error
(erb):13: syntax error, unexpected ';'
for profile in @profiles -; _erbout.concat "\n"
(erb):16: syntax error, unexpected ';'
...eratingsystem.is_a?(Redhat) -; _erbout.concat "\n"
(erb):18: syntax error, unexpected kELSE, expecting $end
_erbout.concat " "; else -; _erbout.concat "\n"
^):
(erb):18:in `generate_pxe_template'
app/models/orchestration/tftp.rb:84:in `generate_pxe_template'
app/models/orchestration/tftp.rb:33:in `setTFTP'
app/models/orchestration.rb:129:in `send'
app/models/orchestration.rb:129:in `execute'
app/models/orchestration.rb:85:in `process'
app/models/orchestration.rb:80:in `each'
app/models/orchestration.rb:80:in `process'
app/models/orchestration.rb:31:in `on_save'
app/models/host.rb:406:in `setBuild'
app/controllers/hosts_controller.rb:196:in `setBuild'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'Rendering /usr/share/foreman/public/500.html (500 Internal Server Error)
If I define as default template "Preseed default PXElinux" or "Kickstart default PXElinux" the build goes fine.
Thanks again.