diff options
author | Thomas Herve <thomas.herve@canonical.com> | 2012-10-23 15:47:32 +0200 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2012-10-23 15:47:32 +0200 |
commit | 0421d502e903f3c3ece767be57df7c27323241a0 (patch) | |
tree | 1833c6e80a2c1b3ee68332a8a8598ab530a54173 | |
parent | d6ecf35e15b3ba6ab6448b77b52cb78c63165880 (diff) | |
parent | 179f82a9719c2850e465f7f06221978f3be15ffc (diff) | |
download | vyos-cloud-init-0421d502e903f3c3ece767be57df7c27323241a0.tar.gz vyos-cloud-init-0421d502e903f3c3ece767be57df7c27323241a0.zip |
restart landscape after config or install
LP: #1070345
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | cloudinit/config/cc_landscape.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -3,6 +3,7 @@ - config-drive: map hostname to local-hostname (LP: #1061964) - landscape: install landscape-client package if not installed. only take action if cloud-config is present (LP: #1066115) + - cc_landscape: restart landscape after install or config (LP: #1070345) 0.7.0: - add a 'exception_cb' argument to 'wait_for_url'. If provided, this method will be called back with the exception received and the message. diff --git a/cloudinit/config/cc_landscape.py b/cloudinit/config/cc_landscape.py index 331559f4..56ab0ce3 100644 --- a/cloudinit/config/cc_landscape.py +++ b/cloudinit/config/cc_landscape.py @@ -84,6 +84,7 @@ def handle(_name, cfg, cloud, log, _args): log.debug("Wrote landscape config file to %s", lsc_client_fn) util.write_file(LS_DEFAULT_FILE, "RUN=1\n") + util.subp(["service", "landscape-client", "restart"]) def merge_together(objs): |