summaryrefslogtreecommitdiff
path: root/bin/cloud-init
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-07-10 17:49:59 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-07-10 17:49:59 -0700
commitc2443ed6bb9c1023c5f9c7020ad3ad0131a9b1d2 (patch)
tree53acdf1fe9bbc6040168fe4221828547a044785d /bin/cloud-init
parent86f0d708564ab210f2f58f3e76f94a4af56e360b (diff)
downloadvyos-cloud-init-c2443ed6bb9c1023c5f9c7020ad3ad0131a9b1d2.tar.gz
vyos-cloud-init-c2443ed6bb9c1023c5f9c7020ad3ad0131a9b1d2.zip
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.
Diffstat (limited to 'bin/cloud-init')
-rwxr-xr-xbin/cloud-init5
1 files changed, 4 insertions, 1 deletions
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))