From cef7bb96d757d3092f439d9c08a6afd637542e8f Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Tue, 10 Jul 2012 17:49:59 -0700 Subject: [PATCH] Change the welcome message to be slightly different when running in local mode vs non-local mode, which is useful when tracking what is happening in the console and in the logs that are written out later. --- bin/cloud-init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/cloud-init b/bin/cloud-init index fafd176d..1f017475 100755 --- a/bin/cloud-init +++ b/bin/cloud-init @@ -160,7 +160,10 @@ def main_init(name, args): # objects config as it may be different from init object # 10. Run the modules for the 'init' stage # 11. Done! - w_msg = welcome_format(name) + if not args.local: + w_msg = welcome_format(name) + else: + w_msg = welcome_format("%s-local" % (name)) init = stages.Init(deps) # Stage 1 init.read_cfg(extract_fns(args))