Ensure template-name and rootfs-cache-path are set prior to container creation

This commit is contained in:
Fabio Rehm 2013-03-10 02:34:17 -03:00
parent 1b9dcf5aad
commit 30b1420ced

View file

@ -50,12 +50,12 @@ module Vagrant
# TODO: Handle errors
lxc :create,
# lxc-create options
'--template', metadata['template-name'],
'--template', metadata.fetch('template-name'),
'--name', @name,
'--',
# Template options
'--auth-key', public_key,
'--cache', metadata['rootfs-cache-path'],
'--cache', metadata.fetch('rootfs-cache-path'),
*meta_opts
@name