mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
cephadm: add type checking for check_host
and prepare_host
Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
parent
803b6d7f44
commit
1244c65306
@ -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()
|
||||
|
||||
##################################
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user