From: Sebastian Wagner Date: Wed, 22 Apr 2020 16:26:13 +0000 (+0200) Subject: cephadm: improve warn message X-Git-Tag: v16.1.0~2513^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34693%2Fhead;p=ceph.git cephadm: improve warn message make it more fancy! Signed-off-by: Sebastian Wagner Co-authored-by: Michael Fritch --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index dfce8eb26d24..44a62f8adb85 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):