From: Sebastian Wagner Date: Wed, 22 Apr 2020 16:26:13 +0000 (+0200) Subject: cephadm: improve warn message X-Git-Tag: v15.2.2~38^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=88adfbd54563b3db31abba2afe4af3ccc1ed08f4;p=ceph.git cephadm: improve warn message make it more fancy! Signed-off-by: Sebastian Wagner Co-authored-by: Michael Fritch (cherry picked from commit 02c46b6d811765904ee3042a0240e910d70eb7e3) --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index f1663535d327..32610e70216a 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -1082,10 +1082,12 @@ def _get_default_image(): if DEFAULT_IMAGE_IS_MASTER: yellow = '\033[93m' end = '\033[0m' - s = '{}Warning: This is a development version of cephadm. Please refer to https://docs.ceph.com/docs/{}/cephadm/install{}'.format( - yellow, LATEST_STABLE_RELEASE, end - ) - print(s) + warn = '''This is a development version of cephadm. +For information regarding the latest stable release: + https://docs.ceph.com/docs/{}/cephadm/install +'''.format(LATEST_STABLE_RELEASE) + for line in warn.splitlines(): + logger.warning('{}{}{}'.format(yellow, line, end)) return DEFAULT_IMAGE def infer_image(func):