From: Michael Fritch Date: Wed, 4 Mar 2020 20:21:58 +0000 (-0700) Subject: cephadm: add type checking for `check_host` and `prepare_host` X-Git-Tag: v15.1.1~21^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1244c6530615d86de356534acb3365b43e643b63;p=ceph.git cephadm: add type checking for `check_host` and `prepare_host` Signed-off-by: Michael Fritch --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index a674566cef70..ae747e9e02a2 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -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() ##################################