From 1c80a5371338d554e12fd58f6b9a3f7855102a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Herv=C3=A9?= Date: Wed, 5 Sep 2012 18:55:58 +0200 Subject: [PATCH] Check if the config was specified --- cloudinit/config/cc_landscape.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudinit/config/cc_landscape.py b/cloudinit/config/cc_landscape.py index d351d941..7cfb8296 100644 --- a/cloudinit/config/cc_landscape.py +++ b/cloudinit/config/cc_landscape.py @@ -79,7 +79,8 @@ def handle(_name, cfg, cloud, log, _args): util.write_file(lsc_client_fn, contents.getvalue()) log.debug("Wrote landscape config file to %s", lsc_client_fn) - util.write_file(LS_DEFAULT_FILE, "RUN=1\n") + if ls_cloudcfg: + util.write_file(LS_DEFAULT_FILE, "RUN=1\n") def merge_together(objs):