cephadm: add type checking for check_host and prepare_host

Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
Michael Fritch 2020-03-04 13:21:58 -07:00
parent 803b6d7f44
commit 1244c65306
No known key found for this signature in database
GPG Key ID: 75F3EB2E80A03B7F

View File

@ -3120,6 +3120,7 @@ def check_time_sync(enabler=None):
return True
def command_check_host():
# type: () -> None
# caller already checked for docker/podman
logger.info('podman|docker (%s) is present' % container_path)
@ -3148,6 +3149,7 @@ def command_check_host():
##################################
def command_prepare_host():
# type: () -> None
logger.info('Verifying podman|docker is present...')
pkg = None
if not container_path:
@ -3177,7 +3179,7 @@ def command_prepare_host():
f.write(args.expect_hostname + '\n')
logger.info('Repeating the final host check...')
return command_check_host()
command_check_host()
##################################