From f9e9f30b2752c8bdcd7d368473bd1c790f901b39 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 26 Sep 2023 13:25:31 -0400 Subject: [PATCH] cephadm: move a logging line closer to where the data is used Move a logging line closer to where the data being logging is used. This avoids having a dependency on logging in a fairly simple function and should make moving the function in a future commit easier. Signed-off-by: John Mulligan --- src/cephadm/cephadm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 30a824f2983..d3d00e61851 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -5413,7 +5413,6 @@ def read_configuration_source(ctx: CephadmContext) -> Dict[str, Any]: else: with open(source, 'rb') as fh: config_data = json.load(fh) - logger.debug('Loaded deploy configuration: %r', config_data) return config_data @@ -5455,6 +5454,7 @@ def command_deploy_from(ctx: CephadmContext) -> None: configuration parameters from an input JSON configuration file. """ config_data = read_configuration_source(ctx) + logger.debug('Loaded deploy configuration: %r', config_data) apply_deploy_config_to_ctx(config_data, ctx) _common_deploy(ctx)