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):