]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
lxcapi_create: fix template handling
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 11 Jul 2013 04:30:29 +0000 (23:30 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 11 Jul 2013 15:25:33 +0000 (10:25 -0500)
commitcbee8106e38f9ffa130c7bf8be325f7f203da67a
tree2913ecbb9ec4d1d43ea5b7d0e74c802b25dc1818
parent96b3cb407c07915db2cd0542c313a4bff4d1d389
lxcapi_create: fix template handling

1. If no template is passed in, then do not try to execute it.  The user
just wanted to write the configuration.

2. If template is passed in as a full path, then use that instead of
constructing '$templatedir/lxc-$template'.

Reported-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c