jedi4ever / veewee

Easing the building of vagrant boxes
MIT License
4.29k stars 779 forks source link

Build fails when serving .erb kickstart files. #1038

Open bobjohnbob opened 9 years ago

bobjohnbob commented 9 years ago

I was having difficulty trying to get my kickstart file to load while building a box. It was an erb file, which the documentation says is supported, when I renamed it back to .cfg, it worked fine.

Digging around in the code, it looks like the filename is being mangled for erb files:

lib/veewee/provider/core/helper/web.rb:54:

urlname = urlname[0..-5] if File.extname(urlname)  == ".erb"

Comenting that out seems to allow the files to be served, but I haven't tested yet if the files are processed properly when served.

Edit: this is with what was the latest HEAD at the time:

commit 58e4c5b6cf8831a8090c776f22bdeba75ef4843f