intel / ccloudvm

Configurable Cloud VM is a small command line tool for automatically creating development and demo environments for complex projects. The tool sets up these development environments inside a virtual machine which it automatically creates on the user’s host computer. This avoids polluting the user’s host machine with components from the chosen development environment and provides a clean, predictable and repeatable environment in which this development environment can run.
Apache License 2.0
32 stars 19 forks source link

CCloudvm no longer uses template.Must #33

Closed markdryan closed 6 years ago

markdryan commented 6 years ago

When ccloudvm was first written it supported only one workload, ciao. This workload was built into the ccloudvm binary as a Go string. When parsing the workload, template.Must was used. This made sense as any syntax errors in the template were indicative of a problem with ccloudvm itself. Now however, workloads are user supplied and so can often contain errors. Panicing on error is no longer the correct thing to do. It also means that the VM under construction does not get cleaned up correctly.

Fixes: https://github.com/intel/ccloudvm/issues/14

Signed-off-by: Mark Ryan mark.d.ryan@intel.com