]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add type checking for `check_host` and `prepare_host`
authorMichael Fritch <mfritch@suse.com>
Wed, 4 Mar 2020 20:21:58 +0000 (13:21 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 12 Mar 2020 14:08:59 +0000 (08:08 -0600)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index a674566cef7020ad18f2aaf035a89821cec79ed8..ae747e9e02a279eff8fd5c809b35463ca0f0f13c 100755 (executable)
@@ -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()
 
 ##################################