From 30b1420ced1f2f493d712f1190924971e6c1c219 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 10 Mar 2013 02:34:17 -0300 Subject: [PATCH] Ensure template-name and rootfs-cache-path are set prior to container creation --- lib/vagrant-lxc/container.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vagrant-lxc/container.rb b/lib/vagrant-lxc/container.rb index 3d3e8ed..3dfb3b6 100644 --- a/lib/vagrant-lxc/container.rb +++ b/lib/vagrant-lxc/container.rb @@ -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'], + '--auth-key', public_key, + '--cache', metadata.fetch('rootfs-cache-path'), *meta_opts @name