summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_landscape.py
diff options
context:
space:
mode:
authorThomas Hervé <thomas@canonical.com>2012-09-05 18:55:58 +0200
committerThomas Hervé <thomas@canonical.com>2012-09-05 18:55:58 +0200
commitc76daa63ecfa0901769f1cb8211465c06b33770c (patch)
tree006022500239fa3645f2c9d0d75e8fef9aecab5f /cloudinit/config/cc_landscape.py
parentf72512d8387b93eaf9c5bb7956361ad16e40376e (diff)
downloadvyos-cloud-init-c76daa63ecfa0901769f1cb8211465c06b33770c.tar.gz
vyos-cloud-init-c76daa63ecfa0901769f1cb8211465c06b33770c.zip
Check if the config was specified
Diffstat (limited to 'cloudinit/config/cc_landscape.py')
-rw-r--r--cloudinit/config/cc_landscape.py3
1 files changed, 2 insertions, 1 deletions
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):