Ensure template-name and rootfs-cache-path are set prior to container creation
This commit is contained in:
parent
1b9dcf5aad
commit
30b1420ced
1 changed files with 3 additions and 3 deletions
|
@ -50,12 +50,12 @@ module Vagrant
|
||||||
# TODO: Handle errors
|
# TODO: Handle errors
|
||||||
lxc :create,
|
lxc :create,
|
||||||
# lxc-create options
|
# lxc-create options
|
||||||
'--template', metadata['template-name'],
|
'--template', metadata.fetch('template-name'),
|
||||||
'--name', @name,
|
'--name', @name,
|
||||||
'--',
|
'--',
|
||||||
# Template options
|
# Template options
|
||||||
'--auth-key', public_key,
|
'--auth-key', public_key,
|
||||||
'--cache', metadata['rootfs-cache-path'],
|
'--cache', metadata.fetch('rootfs-cache-path'),
|
||||||
*meta_opts
|
*meta_opts
|
||||||
|
|
||||||
@name
|
@name
|
||||||
|
|
Loading…
Add table
Reference in a new issue