diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-02-11 12:57:50 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-02-11 12:57:50 -0500 |
commit | ceb229043cec98d79aa8e72c6eb5e79f796a96d7 (patch) | |
tree | 9798bcc587802b0fc1f0666fa50a275db2ffde22 /cloudinit/config/cc_final_message.py | |
parent | 33c938c2e2d196aa9b202087cef8703abc13bc52 (diff) | |
download | vyos-cloud-init-ceb229043cec98d79aa8e72c6eb5e79f796a96d7.tar.gz vyos-cloud-init-ceb229043cec98d79aa8e72c6eb5e79f796a96d7.zip |
provide default final message in jinja to avoid WARN in log
Diffstat (limited to 'cloudinit/config/cc_final_message.py')
-rw-r--r-- | cloudinit/config/cc_final_message.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cloudinit/config/cc_final_message.py b/cloudinit/config/cc_final_message.py index b24294e4..ad957e12 100644 --- a/cloudinit/config/cc_final_message.py +++ b/cloudinit/config/cc_final_message.py @@ -26,9 +26,12 @@ from cloudinit.settings import PER_ALWAYS frequency = PER_ALWAYS -# Cheetah formated default message -FINAL_MESSAGE_DEF = ("Cloud-init v. ${version} finished at ${timestamp}." - " Datasource ${datasource}. Up ${uptime} seconds") +# Jinja formated default message +FINAL_MESSAGE_DEF = ( + "## template: jinja\n" + "Cloud-init v. {{version}} finished at {{timestamp}}." + " Datasource {{datasource}}. Up {{uptime}} seconds" +) def handle(_name, cfg, cloud, log, args): |