From: Michael Fritch Date: Wed, 20 Jan 2021 21:28:38 +0000 (-0700) Subject: cephadm: remove redundant `ERROR` during check-host X-Git-Tag: v17.1.0~2783^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ace5d41dc580a1ea0d0aba19f07da355b06823ef;p=ceph.git cephadm: remove redundant `ERROR` during check-host ``` ERROR: ERROR: No time synchronization is active ``` Signed-off-by: Michael Fritch --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 1f3f92b4ebfa..a14ca7ee6e33 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -5120,21 +5120,21 @@ def command_check_host(ctx: CephadmContext) -> None: find_program(command) logger.info('%s is present' % command) except ValueError: - errors.append('ERROR: %s binary does not appear to be installed' % command) + errors.append('%s binary does not appear to be installed' % command) # check for configured+running chronyd or ntp if not check_time_sync(ctx): - errors.append('ERROR: No time synchronization is active') + errors.append('No time synchronization is active') if "expect_hostname" in ctx and ctx.expect_hostname: if get_hostname().lower() != ctx.expect_hostname.lower(): - errors.append('ERROR: hostname "%s" does not match expected hostname "%s"' % ( + errors.append('hostname "%s" does not match expected hostname "%s"' % ( get_hostname(), ctx.expect_hostname)) logger.info('Hostname "%s" matches what is expected.', ctx.expect_hostname) if errors: - raise Error('\n'.join(errors)) + raise Error('\nERROR: '.join(errors)) logger.info('Host looks OK')