]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: improve warn message 34693/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 22 Apr 2020 16:26:13 +0000 (18:26 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 22 Apr 2020 16:26:27 +0000 (18:26 +0200)
make it more fancy!

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-authored-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index dfce8eb26d24488ee8357ba056e79ccd41949433..44a62f8adb855c2510f31d41a1a6752d3833194e 100755 (executable)
@@ -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):