Guest User

Untitled

a guest
Jan 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. SyntaxError (compile error
  2. (erb):14: syntax error, unexpected ';'
  3. ; for profile in @profiles -; _erbout.concat "\nLABEL "
  4. ^
  5. (erb):17: syntax error, unexpected ';'
  6. ...eratingsystem.is_a?(Redhat) -; _erbout.concat "\n append...
  7. ^
  8. (erb):19: syntax error, unexpected kELSE, expecting $end
  9. ; else -; _erbout.concat "\n append initrd="
  10. ^):
  11. (erb):19:in `generate_pxe_template'
  12. app/models/orchestration/tftp.rb:84:in `generate_pxe_template'
  13. app/models/orchestration/tftp.rb:33:in `setTFTP'
  14.  
  15.  
  16. This is the template:
  17.  
  18. <% for profile in @profiles -%>
  19. LABEL <%= "#{profile[:template]} - #{profile[:hostgroup]}" %>
  20. kernel <%= profile[:hostgroup].operatingsystem.kernel(profile[:hostgroup].architecture) %>
  21. <% if profile[:hostgroup].operatingsystem.is_a?(Redhat) -%>
  22. append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> ks=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ksdevice=bootif network kssendmac
  23. <% else -%>
  24.  
  25. ...
Add Comment
Please, Sign In to add comment