From c2443ed6bb9c1023c5f9c7020ad3ad0131a9b1d2 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Tue, 10 Jul 2012 17:49:59 -0700 Subject: 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)) -- cgit v1.2.3