From 12a6d52a464f2854c5d9c031f8e5b7898ffc4951 Mon Sep 17 00:00:00 2001 From: Matthias Stecher Date: Sun, 12 Jul 2020 21:30:44 +0200 Subject: [PATCH] [__lxc_container] handle $empty_conf for --no-default-config correctly Fixed wrong variable spelling and correct check to remove the tempfile again (forgotten from 304d974f). --- cdist/conf/type/__lxc_container/gencode-remote | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cdist/conf/type/__lxc_container/gencode-remote b/cdist/conf/type/__lxc_container/gencode-remote index bd3f49b6..ddba593a 100755 --- a/cdist/conf/type/__lxc_container/gencode-remote +++ b/cdist/conf/type/__lxc_container/gencode-remote @@ -132,10 +132,11 @@ LXC create_opts="" if [ -f "$__object/parameter/no-default-config" ]; then # generate a random empty file and append + # maybe work with an nonexistant file - but just be correct cat <