]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: move logging from registry_login to command_registry_login
authorAdam King <adking@redhat.com>
Wed, 27 Sep 2023 18:27:18 +0000 (14:27 -0400)
committerAdam King <adking@redhat.com>
Wed, 27 Sep 2023 19:23:42 +0000 (15:23 -0400)
So that registry_login can be moved to container_engines.py
without creating a dependency on logging there

Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm.py

index 30a824f2983a55a87bb115abdf65242a42aaa158..a0ebf7e96b5e9dc1678478d0e4c90a0ae16daa36 100755 (executable)
@@ -5272,6 +5272,7 @@ def command_bootstrap(ctx):
 
 
 def command_registry_login(ctx: CephadmContext) -> int:
+    logger.info('Logging into custom registry.')
     if ctx.registry_json:
         logger.info('Pulling custom registry login info from %s.' % ctx.registry_json)
         d = get_parm(ctx.registry_json)
@@ -5298,7 +5299,6 @@ def command_registry_login(ctx: CephadmContext) -> int:
 
 
 def registry_login(ctx: CephadmContext, url: Optional[str], username: Optional[str], password: Optional[str]) -> None:
-    logger.info('Logging into custom registry.')
     try:
         engine = ctx.container_engine
         cmd = [engine.path, 'login',